2024-02-26 07:33:11 +00: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 14:30:22 +00:00
|
|
|
# and in the NixOS manual (accessible by running `nixos-help`).
|
2024-02-26 07:33:11 +00:00
|
|
|
|
2024-11-04 02:01:10 +00:00
|
|
|
{ pkgs, inputs, lib, config, ... }:
|
2024-02-26 07:33:11 +00:00
|
|
|
|
|
|
|
{
|
2024-05-31 09:29:49 +00:00
|
|
|
imports = [
|
|
|
|
inputs.home-manager.nixosModules.default
|
2024-06-28 14:11:38 +00:00
|
|
|
../../modules
|
2024-02-26 07:33:11 +00:00
|
|
|
|
2024-10-07 03:13:43 +00:00
|
|
|
# Default specialisation
|
|
|
|
({ lib, config, ... }: {
|
|
|
|
config = lib.mkIf (config.specialisation != { }) {
|
|
|
|
snowhawk.dwm.enable = true;
|
2024-10-06 15:59:38 +00:00
|
|
|
|
2024-10-07 03:13:43 +00:00
|
|
|
home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }];
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2024-10-06 16:59:19 +00:00
|
|
|
|
2024-11-04 02:01:10 +00: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 16:59:19 +00:00
|
|
|
|
2024-11-04 02:01:10 +00: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 16:59:19 +00:00
|
|
|
};
|
2024-10-06 15:59:38 +00:00
|
|
|
|
2024-06-30 20:46:41 +00:00
|
|
|
snowhawk = {
|
2024-10-06 14:12:40 +00:00
|
|
|
filesystem.enable = true;
|
2024-07-01 20:20:21 +00:00
|
|
|
plymouth.enable = true;
|
2024-10-06 13:42:10 +00:00
|
|
|
polkit.enable = true;
|
2024-10-06 14:13:07 +00:00
|
|
|
syncthing.enable = true;
|
2024-10-06 13:46:06 +00:00
|
|
|
user.enable = true;
|
2024-10-06 14:13:07 +00:00
|
|
|
wake-on-lan.enable = true;
|
2024-06-30 20:46:41 +00:00
|
|
|
};
|
2024-05-31 08:50:59 +00:00
|
|
|
|
2024-02-26 07:33:11 +00:00
|
|
|
# Enable automatic login for the user.
|
2024-06-06 00:59:42 +00:00
|
|
|
services.displayManager.autoLogin = {
|
2024-02-26 07:33:11 +00:00
|
|
|
enable = true;
|
|
|
|
user = "ravenshade";
|
|
|
|
};
|
|
|
|
|
2024-11-29 03:31:32 +00:00
|
|
|
documentation = {
|
|
|
|
enable = true;
|
|
|
|
dev.enable = true;
|
|
|
|
man.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-09-14 00:24:55 +00:00
|
|
|
home-manager = {
|
|
|
|
users = { "ravenshade" = import ./home.nix; };
|
|
|
|
backupFileExtension = "backup";
|
2024-10-06 15:44:47 +00:00
|
|
|
useGlobalPkgs = true;
|
2024-09-14 00:24:55 +00:00
|
|
|
};
|
2024-02-26 09:14:08 +00:00
|
|
|
|
2024-02-26 07:33:11 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2024-02-26 08:23:21 +00:00
|
|
|
neovim
|
|
|
|
curl
|
|
|
|
git
|
2024-06-28 05:34:25 +00:00
|
|
|
killall
|
2024-11-29 03:31:32 +00:00
|
|
|
|
|
|
|
linux-manual
|
2024-02-26 07:33:11 +00:00
|
|
|
];
|
|
|
|
|
2024-10-06 14:15:34 +00:00
|
|
|
fonts.packages = with pkgs; [
|
|
|
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
|
|
|
];
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
hardware.keyboard.uhk.enable = true;
|
|
|
|
|
2024-11-25 00:20:32 +00:00
|
|
|
virtualisation = {
|
|
|
|
libvirtd.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.virt-manager.enable = true;
|
|
|
|
|
2024-10-06 14:15:34 +00:00
|
|
|
# I think I need a gtk theme? gnome-keyring
|
|
|
|
qt.platformTheme = "gtk2";
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
|
2024-02-26 07:33:11 +00: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?
|
|
|
|
}
|