initial config commit
This commit is contained in:
parent
f8980b6805
commit
f3dc1d15ff
79 changed files with 2725 additions and 0 deletions
42
hosts/desktop/configuration.nix
Normal file
42
hosts/desktop/configuration.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
pkgs,
|
||||
hostName,
|
||||
inputs,
|
||||
userName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../modules/nixos/default.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# reusable modules
|
||||
|
||||
amd-gpu.enable = true;
|
||||
desktop.enable = true;
|
||||
external-speakers.enable = true;
|
||||
gaming.enable = true;
|
||||
link2c.enable = true;
|
||||
|
||||
# config
|
||||
|
||||
boot.initrd.luks.devices."luks-b164af31-c1c3-4b4e-83c8-eb39802c2027".device =
|
||||
"/dev/disk/by-uuid/b164af31-c1c3-4b4e-83c8-eb39802c2027";
|
||||
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
i18n.extraLocaleSettings.LC_ALL = "en_AU.UTF-8";
|
||||
|
||||
users.users.${userName} = {
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"scanner"
|
||||
"lp"
|
||||
];
|
||||
isNormalUser = true;
|
||||
};
|
||||
}
|
||||
66
hosts/desktop/hardware-configuration.nix
Normal file
66
hosts/desktop/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/8ac17d03-8db2-455f-b73a-06d73022a079";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-bf3ff3bf-7210-4c50-a6bc-feb5bdb6fa0d".device =
|
||||
"/dev/disk/by-uuid/bf3ff3bf-7210-4c50-a6bc-feb5bdb6fa0d";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/3854-4FAE";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/media/games" = {
|
||||
device = "/dev/disk/by-uuid/ea672712-282d-4421-bf34-c9a249a9b275";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=games"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/media/hoard" = {
|
||||
device = "/dev/disk/by-uuid/ea672712-282d-4421-bf34-c9a249a9b275";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=hoard"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/000dc4be-b250-4870-9284-b761486e8cea"; }
|
||||
];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
19
hosts/desktop/home.nix
Normal file
19
hosts/desktop/home.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
userName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../../modules/home-manager/default.nix ];
|
||||
|
||||
# reusable modules
|
||||
|
||||
desktop.enable = true;
|
||||
|
||||
# config
|
||||
|
||||
home = {
|
||||
username = "${userName}";
|
||||
homeDirectory = "/home/will";
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue