Add device-specific config for mistmane. x86_64 stuff still not in set

This commit is contained in:
Artemis Tosini 2020-12-04 23:35:51 +00:00
parent 5cfb967412
commit 85b2b6ea1e
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
4 changed files with 77 additions and 0 deletions

View file

@ -10,6 +10,7 @@
environment.systemPackages = with pkgs; [
kicad-unstable
openocd
picocom
stlink
(callPackage ../externals/packages/jlink { })
];

View file

@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
boot = {
kernel.sysctl."vm.swappiness" = 5;
cleanTmpDir = true;
loader.grub.enable = false;
loader.generic-extlinux-compatible.enable = true;
initrd = {
luks.devices."${config.networking.hostName}" = {
name = config.networking.hostName;
device = "/dev/disk/by-uuid/aa3cac7f-695a-40d4-ad2b-f781ddd3c8e1";
preLVM = true;
allowDiscards = true;
};
};
};
fileSystems = {
"/home".options = [ "noatime" ];
"/boot".options = [ "noatime" ];
"/".options = [ "noatime" ];
};
}

View file

@ -2,6 +2,19 @@
{
imports = [
./boot-config.nix
./hardware-configuration.nix
../../externals/wip-pinebook-pro/pinebook_pro.nix
../../sets/neovim
../../sets/sway.nix
../../sets/networkmanager.nix
];
networking.hostName = "mistmane";
programs.light.enable = true;
system.stateVersion = "20.09";
environment.systemPackages = with pkgs; [
foot
];
}

View file

@ -0,0 +1,38 @@
# 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" "usbhid" "usb_storage" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/de73bbb6-e56a-4aa0-8a48-c18c9d87a2b9";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/de73bbb6-e56a-4aa0-8a48-c18c9d87a2b9";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/DB30-D60A";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/33353309-c592-40ba-8a72-f629c0776a82"; }
];
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}