From f31f8711083c606709a0481a1d342c933617fdff Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 4 Mar 2024 03:34:09 +0000 Subject: [PATCH] Enable flakes by default --- system/pearbutter/boot-config.nix | 17 +++++++++++++++++ system/pearbutter/default.nix | 23 +++++++++-------------- 2 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 system/pearbutter/boot-config.nix diff --git a/system/pearbutter/boot-config.nix b/system/pearbutter/boot-config.nix new file mode 100644 index 0000000..3908471 --- /dev/null +++ b/system/pearbutter/boot-config.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: +{ + nixpkgs.hostPlatform = "x86_64-freebsd"; + nixpkgs.config.freebsdBranch = "releng/14.0"; + + networking.hostName = "pearbutter"; + + fileSystems."/" = { + device = "/dev/gpt/pearbutter-root"; + fsType = "ufs"; + }; + + fileSystems."/boot" = { + device = "/dev/gpt/pearbutter-esp"; + fsType = "msdosfs"; + }; +} diff --git a/system/pearbutter/default.nix b/system/pearbutter/default.nix index f9c86a8..a55be76 100644 --- a/system/pearbutter/default.nix +++ b/system/pearbutter/default.nix @@ -1,9 +1,6 @@ { pkgs, ... }: { - nixpkgs.hostPlatform = "x86_64-freebsd"; - nixpkgs.config.freebsdBranch = "releng/14.0"; - - networking.hostName = "pearbutter"; + imports = [ ./boot-config.nix ]; users.users.artemis = { isNormalUser = true; @@ -15,6 +12,14 @@ services.sshd.enable = true; boot.loader.stand.enable = true; + nix.settings = { + trusted-users = [ "@wheel" ]; + experimental-features = [ + "nix-command" + "flakes" + ]; + }; + environment.systemPackages = with pkgs; [ gitMinimal htop @@ -24,14 +29,4 @@ vim zip ]; - - fileSystems."/" = { - device = "/dev/gpt/pearbutter-root"; - fsType = "ufs"; - }; - - fileSystems."/boot" = { - device = "/dev/gpt/pearbutter-esp"; - fsType = "msdosfs"; - }; }