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"; - }; }