nixos/hosts/snowhawk/configuration.nix

96 lines
2.4 KiB
Nix
Raw Normal View History

2024-02-25 23:33:11 -08:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
2024-06-28 07:30:22 -07:00
# and in the NixOS manual (accessible by running `nixos-help`).
2024-02-25 23:33:11 -08:00
2024-11-03 18:01:10 -08:00
{ pkgs, inputs, lib, config, ... }:
2024-02-25 23:33:11 -08:00
{
2024-05-31 02:29:49 -07:00
imports = [
inputs.home-manager.nixosModules.default
2024-06-28 07:11:38 -07:00
../../modules
2024-02-25 23:33:11 -08:00
# Default specialisation
({ lib, config, ... }: {
config = lib.mkIf (config.specialisation != { }) {
snowhawk.dwm.enable = true;
2024-10-06 08:59:38 -07:00
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
};
})
];
2024-10-06 09:59:19 -07:00
2024-11-03 18:01:10 -08:00
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;
2024-10-06 09:59:19 -07:00
2024-11-03 18:01:10 -08:00
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;
2024-10-06 09:59:19 -07:00
};
2024-10-06 08:59:38 -07:00
2024-06-30 13:46:41 -07:00
snowhawk = {
2024-10-06 07:12:40 -07:00
filesystem.enable = true;
2024-07-01 13:20:21 -07:00
plymouth.enable = true;
polkit.enable = true;
2024-10-06 07:13:07 -07:00
syncthing.enable = true;
user.enable = true;
2024-10-06 07:13:07 -07:00
wake-on-lan.enable = true;
2024-06-30 13:46:41 -07:00
};
2024-05-31 01:50:59 -07:00
2024-02-25 23:33:11 -08:00
# Enable automatic login for the user.
2024-06-05 17:59:42 -07:00
services.displayManager.autoLogin = {
2024-02-25 23:33:11 -08:00
enable = true;
user = "ravenshade";
};
2024-09-13 17:24:55 -07:00
home-manager = {
users = { "ravenshade" = import ./home.nix; };
backupFileExtension = "backup";
2024-10-06 08:44:47 -07:00
useGlobalPkgs = true;
2024-09-13 17:24:55 -07:00
};
2024-02-26 01:14:08 -08:00
2024-02-25 23:33:11 -08:00
environment.systemPackages = with pkgs; [
2024-02-26 00:23:21 -08:00
neovim
curl
git
2024-06-27 22:34:25 -07:00
killall
2024-02-25 23:33:11 -08:00
];
2024-10-06 07:15:34 -07:00
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";
2024-02-25 23:33:11 -08:00
# 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?
}