moving env stuff to dedicated config

This commit is contained in:
Zynh Ludwig 2024-06-30 02:11:01 -07:00
parent 37bfc5f400
commit 60ccf1a5fc
3 changed files with 21 additions and 8 deletions

View file

@ -32,11 +32,6 @@
services.envfs.enable = true;
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
programs.nix-ld.enable = true;
# programs.nix-ld.libraries = with pkgs; [
#
@ -97,9 +92,6 @@
# backupFileExtension = "backup";
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# programs.hyprland.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1";

View file

@ -5,8 +5,10 @@
./dwm.nix
./i18n.nix
./audio.nix
./env.nix
];
snowhawk.i18n.enable = lib.mkDefault true;
snowhawk.audio.enable = lib.mkDefault true;
snowhawk.env.enable = lib.mkDefault true;
}

19
modules/env.nix Normal file
View file

@ -0,0 +1,19 @@
{ lib, config, ... }:
let
cfg = config.snowhawk.env;
in
{
options.snowhawk.env = {
enable = lib.mkEnableOption "env";
};
config = lib.mkIf cfg.enable {
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
nixpkgs.config.allowUnfree = true;
};
}