Initial configuration
This commit is contained in:
commit
44b011a6b4
15 changed files with 328 additions and 0 deletions
13
specific/laptop/default.nix
Normal file
13
specific/laptop/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{config, ...}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../common/gui
|
||||
../../common/devel
|
||||
../../common/networking-home
|
||||
./fs.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nix-te-vinden";
|
||||
}
|
15
specific/laptop/fs.nix
Normal file
15
specific/laptop/fs.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ ... }: {
|
||||
fileSystems = {
|
||||
"/" = { label = "root"; };
|
||||
"/boot" = { label = "BOOT"; };
|
||||
"/home" = { label = "home"; };
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices = {
|
||||
luks-system = {
|
||||
device = "/dev/disk/by-uuid/b51ac469-a88d-4cc8-9b92-d0f0c8479eb2";
|
||||
preLVM = true;
|
||||
allowDiscards = true;
|
||||
};
|
||||
};
|
||||
}
|
30
specific/laptop/hardware-configuration.nix
Normal file
30
specific/laptop/hardware-configuration.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
# 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, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/8c86ebcd-7bce-4cff-81fc-bd3059b8a1a9";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/227fa1db-887e-4a3f-9b9d-59f425bfe880";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nix.maxJobs = lib.mkDefault 8;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue