From 0e8edd0d5f016ce6f139118c43112a1134d709bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 29 Mar 2023 17:50:55 +0300 Subject: [PATCH] wip flakes --- configuration.nix | 2 -- flake.nix | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 flake.nix diff --git a/configuration.nix b/configuration.nix index 36d9475..6e350aa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -66,7 +66,6 @@ in { /etc/nixos/hardware-configuration.nix /etc/nixos/zfs.nix ]; - nixpkgs.overlays = [ (self: super: { systemd = super.systemd.overrideAttrs (old: { patches = (old.patches or []) ++ [ @@ -579,7 +578,6 @@ in { }; system = { - copySystemConfiguration = true; autoUpgrade.enable = true; autoUpgrade = { allowReboot = true; diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a7f61ff --- /dev/null +++ b/flake.nix @@ -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 + ]; + }; + }; + }; +}