wip flakes

This commit is contained in:
Motiejus Jakštys 2023-03-29 17:50:55 +03:00
parent d4fddf58e6
commit 0e8edd0d5f
2 changed files with 20 additions and 2 deletions

View File

@ -66,7 +66,6 @@ in {
/etc/nixos/hardware-configuration.nix /etc/nixos/zfs.nix /etc/nixos/hardware-configuration.nix /etc/nixos/zfs.nix
]; ];
nixpkgs.overlays = [ (self: super: { nixpkgs.overlays = [ (self: super: {
systemd = super.systemd.overrideAttrs (old: { systemd = super.systemd.overrideAttrs (old: {
patches = (old.patches or []) ++ [ patches = (old.patches or []) ++ [
@ -579,7 +578,6 @@ in {
}; };
system = { system = {
copySystemConfiguration = true;
autoUpgrade.enable = true; autoUpgrade.enable = true;
autoUpgrade = { autoUpgrade = {
allowReboot = true; allowReboot = true;

20
flake.nix Normal file
View File

@ -0,0 +1,20 @@
{
description = "flake for hel1-a";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-22.11";
};
};
outputs = { self, nixpkgs }: {
nixosConfigurations = {
hel1-a = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
];
};
};
};
}