Compare commits

...

3 Commits

5 changed files with 41 additions and 26 deletions

View File

@ -10,13 +10,6 @@
../../modules ../../modules
]; ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enable networking
networking.networkmanager.enable = true;
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
]; ];
@ -39,11 +32,6 @@
services.envfs.enable = true; services.envfs.enable = true;
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
# programs.nix-ld.libraries = with pkgs; [ # programs.nix-ld.libraries = with pkgs; [
# #
@ -63,8 +51,6 @@
gparted gparted
arandr arandr
flameshot
easyeffects
# steam # steam
spotify spotify
@ -74,15 +60,6 @@
xivlauncher xivlauncher
git-credential-oauth git-credential-oauth
rustup
gnumake
zig
gcc
go
python3
nodejs_22
# dotnet-sdk_8
]; ];
}; };
@ -115,9 +92,6 @@
# backupFileExtension = "backup"; # backupFileExtension = "backup";
}; };
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# programs.hyprland.enable = true; # programs.hyprland.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1"; # environment.sessionVariables.NIXOS_OZONE_WL = "1";

View File

@ -100,6 +100,13 @@
swapDevices = [ ]; swapDevices = [ ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enable networking
networking.networkmanager.enable = true;
networking.hostName = "snowhawk"; networking.hostName = "snowhawk";
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's

View File

@ -37,6 +37,19 @@
brave brave
uhk-agent uhk-agent
pulsemixer pulsemixer
flameshot
easyeffects
# Build Tools
rustup
gnumake
zig
gcc
go
python3
nodejs_22
# dotnet-sdk_8
]; ];
home.file = { }; home.file = { };

View File

@ -5,8 +5,10 @@
./dwm.nix ./dwm.nix
./i18n.nix ./i18n.nix
./audio.nix ./audio.nix
./env.nix
]; ];
snowhawk.i18n.enable = lib.mkDefault true; snowhawk.i18n.enable = lib.mkDefault true;
snowhawk.audio.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;
};
}