Start unifying starlight and rainbowdash config
This commit is contained in:
parent
b6977b68eb
commit
90038f172c
|
@ -8,11 +8,9 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./private
|
./private
|
||||||
./hardware-configuration.nix
|
./system/current
|
||||||
./boot-config.nix
|
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./ssh.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
@ -42,10 +40,11 @@
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables = {
|
variables = {
|
||||||
MOZ_USE_XINPUT2 = "1";
|
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
TERMINAL = "kitty";
|
TERMINAL = "alacritty";
|
||||||
|
MOZ_USE_XINPUT2 = "1";
|
||||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||||
|
GTK_THEME = "Adwaita-dark";
|
||||||
};
|
};
|
||||||
enableDebugInfo = true;
|
enableDebugInfo = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
@ -116,7 +115,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = with pkgs; [
|
extraPortals = with pkgs; [
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
(callPackage ./externals/packages/xdg-desktop-portal-wlr.nix {})
|
xdg-desktop-portal-wlr
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -136,7 +135,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "starlight";
|
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
1
system/.gitignore
vendored
Normal file
1
system/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
current
|
34
system/rainbowdash/boot-config.nix
Normal file
34
system/rainbowdash/boot-config.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
}
|
20
system/rainbowdash/default.nix
Normal file
20
system/rainbowdash/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
40
system/rainbowdash/hardware-configuration.nix
Normal file
40
system/rainbowdash/hardware-configuration.nix
Normal 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";
|
||||||
|
}
|
13
system/rainbowdash/secure-boot.nix
Normal file
13
system/rainbowdash/secure-boot.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./externals/systemd-boot-secure ];
|
imports = [ ../../externals/systemd-boot-secure ];
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
kernel.sysctl."vm.swappiness" = 5;
|
kernel.sysctl."vm.swappiness" = 5;
|
Loading…
Reference in a new issue