nixos/hosts/snowhawk/configuration.nix

96 lines
2.4 KiB
Nix

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`).
{ pkgs, inputs, lib, config, ... }:
{
imports = [
inputs.home-manager.nixosModules.default
../../modules
# Default specialisation
({ lib, config, ... }: {
config = lib.mkIf (config.specialisation != { }) {
snowhawk.dwm.enable = true;
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
};
})
];
specialisation =
let
nvkConfig = {
system.nixos.tags = [ "nouveau-drivers" ];
boot.kernelParams = [ "nouveau.config=NvGspRm=1" ];
services.xserver.videoDrivers = (lib.lists.remove "nvidia" config.services.xserver.videoDrivers);
};
in
{
dwmNVK.configuration = {
snowhawk.dwm.enable = true;
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
} // nvkConfig;
dwl.configuration = {
snowhawk.dwl.enable = true;
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
};
dwlNVK.configuration = {
snowhawk.dwl.enable = true;
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
} // nvkConfig;
};
snowhawk = {
filesystem.enable = true;
plymouth.enable = true;
polkit.enable = true;
syncthing.enable = true;
user.enable = true;
wake-on-lan.enable = true;
};
# Enable automatic login for the user.
services.displayManager.autoLogin = {
enable = true;
user = "ravenshade";
};
home-manager = {
users = { "ravenshade" = import ./home.nix; };
backupFileExtension = "backup";
useGlobalPkgs = true;
};
environment.systemPackages = with pkgs; [
neovim
curl
git
killall
];
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
# Enable CUPS to print documents.
services.printing.enable = true;
hardware.keyboard.uhk.enable = true;
# I think I need a gtk theme? gnome-keyring
qt.platformTheme = "gtk2";
# Set your time zone.
time.timeZone = "America/Los_Angeles";
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}