Start unifying starlight and rainbowdash config

This commit is contained in:
Artemis Tosini 2020-08-15 03:06:11 +00:00
parent b6977b68eb
commit 90038f172c
8 changed files with 114 additions and 8 deletions

View file

@ -8,11 +8,9 @@
imports =
[
./private
./hardware-configuration.nix
./boot-config.nix
./system/current
./packages.nix
./fonts.nix
./ssh.nix
];
nix = {
@ -42,10 +40,11 @@
environment = {
variables = {
MOZ_USE_XINPUT2 = "1";
EDITOR = "nvim";
TERMINAL = "kitty";
TERMINAL = "alacritty";
MOZ_USE_XINPUT2 = "1";
_JAVA_AWT_WM_NONREPARENTING = "1";
GTK_THEME = "Adwaita-dark";
};
enableDebugInfo = true;
shellAliases = {
@ -116,7 +115,7 @@
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
(callPackage ./externals/packages/xdg-desktop-portal-wlr.nix {})
xdg-desktop-portal-wlr
];
};
@ -136,7 +135,6 @@
};
networking = {
hostName = "starlight";
firewall.enable = false;
networkmanager = {
enable = true;

1
system/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
current

View file

@ -0,0 +1,34 @@
{ config, pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl."vm.swappiness" = 5;
cleanTmpDir = true;
blacklistedKernelModules = [ "psmouse" ];
initrd = {
luks.devices."${config.networking.hostName}" = {
name = config.networking.hostName;
device = "/dev/disk/by-uuid/e8a47693-e6d9-4d66-ac8a-13633e606f3d";
preLVM = true;
allowDiscards = true;
};
};
};
services.udev.packages = [
pkgs.android-udev-rules
pkgs.openocd
(pkgs.callPackage ../../externals/rules/adafruit.nix { })
(pkgs.callPackage ../../externals/rules/fpga.nix { })
(pkgs.callPackage ../../externals/rules/limesuite.nix { })
(pkgs.callPackage ../../externals/rules/uhk.nix { })
];
fileSystems = {
"/home".options = ["noatime"];
"/boot".options = ["noatime"];
"/".options = ["noatime"];
};
}

View file

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
{
imports = [ ./boot-config.nix ./secure-boot.nix ./hardware-configuration.nix ];
networking.hostName = "rainbowdash";
hardware = {
cpu.intel.updateMicrocode = true;
opengl.extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
];
};
services = {
tlp.enable = true;
upower.enable = true;
throttled.enable = true;
};
}

View file

@ -0,0 +1,40 @@
# 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" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/rainbowdash-root";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{ device = "/dev/mapper/rainbowdash-root";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/642D-02DF";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/289be8e5-6547-41d4-a6ba-309141f9fccd"; }
];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
# High-DPI console
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
}

View file

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
imports = [ ../../externals/systemd-boot-secure ];
boot = {
loader.systemd-boot-secure = {
enable = true;
signed = true;
signing-key = "/root/secure-boot/db.key";
signing-certificate = "/root/secure-boot/db.crt";
};
};
}

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
imports = [ ./externals/systemd-boot-secure ];
imports = [ ../../externals/systemd-boot-secure ];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl."vm.swappiness" = 5;