1
0
Fork 0

full rewrite, first commit

This commit is contained in:
Philipp 2025-02-05 17:58:09 +01:00
commit a83c37a638
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
24 changed files with 4358 additions and 0 deletions

View file

@ -0,0 +1,77 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}:
{
imports = [
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.consoleMode = "max";
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
networking.hostName = "bodenheizung";
snowfallorg.users.philipp = {
create = true;
admin = true;
home = {
enable = true;
};
};
awesome-flake = {
cli = {
neovim.enable = true;
};
apps = {
steam.enable = true;
};
desktop.plasma.enable = true;
hardware.audio.enable = true;
services = {
btrfs.enable = true;
};
system.fonts.enable = true;
system.fonts.emoji = true;
};
# Set your time zone
time.timeZone = "Europe/Berlin";
# Select internationalistation properties
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
"de_DE.UTF-8/UTF-8"
];
extraLocaleSettings = {
LANGUAGE = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
};
};
environment.etc.crypttab = {
mode = "0600";
text = ''
ssd /dev/disk/by-uuid/44afe46a-4ca4-4ef2-a603-a47520eebff1 /root/.crypt-me
'';
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.11";
}

View file

@ -0,0 +1,88 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/1616e34a-a8c6-4e18-882c-d955b4f8ffeb";
fileSystems."/" = {
device = "/dev/disk/by-uuid/24243112-bae6-4842-af26-4db18f8afc3f";
fsType = "btrfs";
options = [ "rw,relatime,ssd,space_cache=v2,subvol=root" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/24243112-bae6-4842-af26-4db18f8afc3f";
fsType = "btrfs";
options = [ "rw,relatime,ssd,space_cache=v2,subvol=home" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/24243112-bae6-4842-af26-4db18f8afc3f";
fsType = "btrfs";
options = [ "rw,relatime,ssd,space_cache=v2,subvol=nix" ];
};
fileSystems."/var/log" = {
device = "/dev/disk/by-uuid/24243112-bae6-4842-af26-4db18f8afc3f";
fsType = "btrfs";
options = [ "rw,relatime,ssd,space_cache=v2,subvol=log" ];
};
fileSystems."/persist" = {
device = "/dev/disk/by-uuid/24243112-bae6-4842-af26-4db18f8afc3f";
fsType = "btrfs";
options = [ "rw,relatime,ssd,space_cache=v2,subvol=persist" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/DF1D-1330";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
fileSystems."/data/ssd" = {
device = "/dev/mapper/ssd";
fsType = "btrfs";
options = [ "rw,relatime,ssd,space_cache=v2,nofail" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp34s0.useDHCP = lib.mkDefault true;
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp36s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}