mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
WIP: Laptop config
This commit is contained in:
32
laptop/default.nix
Normal file
32
laptop/default.nix
Normal 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";
|
||||
}
|
||||
93
laptop/hardware-configuration.nix
Normal file
93
laptop/hardware-configuration.nix
Normal 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
15
laptop/modules/attic.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
10
laptop/modules/default.nix
Normal file
10
laptop/modules/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./attic.nix
|
||||
./packages.nix
|
||||
./programs.nix
|
||||
./services.nix
|
||||
];
|
||||
}
|
||||
6
laptop/modules/packages.nix
Normal file
6
laptop/modules/packages.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
}
|
||||
6
laptop/modules/programs.nix
Normal file
6
laptop/modules/programs.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
}
|
||||
6
laptop/modules/services.nix
Normal file
6
laptop/modules/services.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user