WIP: Laptop config

This commit is contained in:
2026-02-17 20:02:25 +01:00
parent 1d00288f34
commit bfe2094a5f
27 changed files with 467 additions and 190 deletions

32
laptop/default.nix Normal file
View File

@@ -0,0 +1,32 @@
{
config,
pkgs,
lib,
...
}:
{
imports = [
./hardware-configuration.nix
./modules
../common
];
networking = {
hostName = "dalaptop";
};
hardware = {
cpu.intel.updateMicrocode = true;
bluetooth = {
settings = {
General = {
Name = "dalaptop";
};
};
};
};
system.stateVersion = "25.05";
}

View File

@@ -0,0 +1,93 @@
# 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 = [
"xhci_pci"
"ahci"
"nvme"
"uas"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/02dad628-066d-4fba-ada7-bfdfbc2e4ca3";
fsType = "btrfs";
options = [
"subvol=@nix"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:8"
"autodefrag"
];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/02dad628-066d-4fba-ada7-bfdfbc2e4ca3";
fsType = "btrfs";
options = [
"subvol=@home"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:7"
"autodefrag"
];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/02dad628-066d-4fba-ada7-bfdfbc2e4ca3";
fsType = "btrfs";
options = [
"subvol=@nix_nix"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:10"
"autodefrag"
];
};
fileSystems."/var" = {
device = "/dev/disk/by-uuid/02dad628-066d-4fba-ada7-bfdfbc2e4ca3";
fsType = "btrfs";
options = [
"subvol=@nix_var"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:10"
"autodefrag"
];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/C871-B294";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

15
laptop/modules/attic.nix Normal file
View File

@@ -0,0 +1,15 @@
{ ... }: {
nix.settings = {
substituters = [
"https://attic.awroo.fun/my-config"
"https://cache.nixos.org"
];
trusted-public-keys = [
"my-config:zMLOKdd9wxVtJDK2jgI2fW6Uehtdc4WLyU0bOjNpyxM="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
trusted-users = [ "root" "@wheel" ];
};
}

View File

@@ -0,0 +1,10 @@
{ ... }:
{
imports = [
./attic.nix
./packages.nix
./programs.nix
./services.nix
];
}

View File

@@ -0,0 +1,6 @@
{
...
}:
{
}

View File

@@ -0,0 +1,6 @@
{
...
}:
{
}

View File

@@ -0,0 +1,6 @@
{
...
}:
{
}