summaryrefslogtreecommitdiff
path: root/util/host.nix
diff options
context:
space:
mode:
Diffstat (limited to 'util/host.nix')
-rw-r--r--util/host.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/util/host.nix b/util/host.nix
index 048f39c..8c3ab91 100644
--- a/util/host.nix
+++ b/util/host.nix
@@ -3,6 +3,7 @@
name,
modules,
system ? "x86_64-linux",
+ version ? "22.11",
pkgs,
}:
with pkgs.lib;
@@ -12,9 +13,16 @@
[
../hosts/common
- {
+ ({pkgs, ...}: {
+ system.stateVersion = version;
networking.hostName = mkDefault name;
- }
+ # enable non-free packages
+ nixpkgs.config.allowUnfree = true;
+
+ # Enable nix flakes
+ nix.package = pkgs.nixFlakes;
+ nix.settings.experimental-features = ["nix-command" "flakes"];
+ })
home-manager.nixosModules.home-manager
{