tidying and such
This commit is contained in:
parent
0324cf1994
commit
42e502ec78
13 changed files with 132 additions and 40 deletions
53
modules/hosts/hades3/configuration.nix
Normal file
53
modules/hosts/hades3/configuration.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ self, ... }:
|
||||
{
|
||||
flake.nixosModules.hadesConfig =
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
self.nixosModules.hadesHardware
|
||||
self.nixosModules.coreConfig
|
||||
self.nixosModules.programs
|
||||
self.nixosModules.niri
|
||||
];
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
users.users.serenity = {
|
||||
shell = pkgs.fish;
|
||||
ignoreShellProgramCheck = true;
|
||||
isNormalUser = true;
|
||||
description = "";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"i2c"
|
||||
"audio"
|
||||
"video"
|
||||
"input"
|
||||
];
|
||||
packages = with pkgs; [
|
||||
tree
|
||||
];
|
||||
};
|
||||
programs.firefox.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
git
|
||||
curl
|
||||
bat
|
||||
xclip
|
||||
ddcutil
|
||||
unzip
|
||||
ripgrep
|
||||
tealdeer
|
||||
chezmoi
|
||||
];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
};
|
||||
}
|
||||
22
modules/hosts/hades3/default.nix
Normal file
22
modules/hosts/hades3/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ self, inputs, config, ... }: {
|
||||
|
||||
flake.nixosConfigurations.hades = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
self.nixosModules.hadesHardware
|
||||
self.nixosModules.hadesConfig
|
||||
self.nixosModules.coreConfig
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "bak";
|
||||
home-manager.users.serenity = {
|
||||
imports = [
|
||||
config.flake.homeModules.base
|
||||
config.flake.homeModules.hadesHome
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
42
modules/hosts/hades3/hardware.nix
Normal file
42
modules/hosts/hades3/hardware.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.desktopHardware =
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/2f4a231c-04a1-4bb9-9370-c207573be881";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/7D2E-5F33";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue