This commit is contained in:
serenity-F 2026-07-05 19:20:29 +10:00
parent 19232d6f1d
commit 1a3cdb757d
No known key found for this signature in database
15 changed files with 189 additions and 103 deletions

View file

@ -0,0 +1,53 @@
{ self, ... }:
{
flake.nixosModules.coreConfiguration =
{
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";
};
}

View file

@ -0,0 +1,21 @@
{ self, inputs, config, ... }: {
flake.nixosConfigurations.hades = inputs.nixpkgs.lib.nixosSystem {
modules = [
self.nixosModules.hadesHardware
self.nixosModules.coreConfiguration
inputs.home-manager.nixosModules.home-manager
{
home-manager.backupFileExtension = "bak";
home-manager.users.serenity = {
imports = [
config.flake.homeModules.base
config.flake.homeModules.hadesHome
];
};
}
];
};
}

View 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;
};
}