Enable flakes by default

This commit is contained in:
Artemis Tosini 2024-03-04 03:34:09 +00:00
parent ce6ae659f5
commit f31f871108
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 26 additions and 14 deletions

View file

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

View file

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