Bootloader
This commit is contained in:
116
flake.nix
116
flake.nix
@@ -94,10 +94,60 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
boot = {
|
||||
loader = {
|
||||
limine = {
|
||||
enable = true;
|
||||
device = "/dev/disk/by-partlabel/disk-stationette-ESP";
|
||||
|
||||
extraConfig = ''
|
||||
timeout: 3
|
||||
default_entry: 2
|
||||
interface_branding: Station Bootloader
|
||||
interface_branding_color: 2
|
||||
hash_mismatch_panic: no
|
||||
|
||||
term_background: 1a1b26
|
||||
backdrop: 1a1b26
|
||||
|
||||
# Tokyo Night palette
|
||||
term_palette: 15161e;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;a9b1d6
|
||||
term_palette_bright: 414868;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;c0caf5
|
||||
|
||||
term_foreground: c0caf5
|
||||
term_foreground_bright: c0caf5
|
||||
term_background_bright: 24283b
|
||||
'';;
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
# timeout = 0;
|
||||
};
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "black_hud";
|
||||
themePackages = with pkgs; [
|
||||
(adi1090x-plymouth-themes.override {
|
||||
selected_themes = [ "black_hud" ];
|
||||
})
|
||||
];
|
||||
};
|
||||
initrd.verbose = false;
|
||||
|
||||
# Found by running sudo btrfs inspect-internal map-swapfile -r /.swapvol/swapfile
|
||||
kernelParams = [
|
||||
"resume_offset=533760"
|
||||
"quiet"
|
||||
"udev.log_level=3"
|
||||
"systemd.show_status=auto"
|
||||
"splash"
|
||||
];
|
||||
bootspec.enable = true;
|
||||
resumeDevice = "/dev/disk/by-partlabel/disk-stationette-root";
|
||||
};
|
||||
swapDevices = [ {
|
||||
device = "/.swapvol/swapfile";
|
||||
} ];
|
||||
powerManagement.enable = true;
|
||||
environment = {
|
||||
persistence."/persist" = {
|
||||
hideMounts = true;
|
||||
@@ -115,10 +165,15 @@
|
||||
];
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
v4l-utils
|
||||
brightnessctl
|
||||
satty
|
||||
hyprpaper
|
||||
libnotify
|
||||
mako
|
||||
qt6.qtwayland
|
||||
grim
|
||||
gnome-calculator
|
||||
hypridle
|
||||
hyprlock
|
||||
hyprpicker
|
||||
@@ -185,6 +240,18 @@
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
programs = {
|
||||
localsend = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
uwsm = {
|
||||
enable = true;
|
||||
waylandCompositors.hyprland = {
|
||||
prettyName = "Hyprland";
|
||||
comment = "Hyprland compositor managed by UWSM";
|
||||
binPath = "/run/current-system/sw/bin/Hyprland";
|
||||
};
|
||||
};
|
||||
zsh = {
|
||||
enable = true;
|
||||
};
|
||||
@@ -192,6 +259,7 @@
|
||||
enable = true;
|
||||
package = pkgs-unstable.hyprland;
|
||||
xwayland.enable = true;
|
||||
withUWSM = true;
|
||||
};
|
||||
steam = {
|
||||
enable = true;
|
||||
@@ -206,6 +274,15 @@
|
||||
envfs.enable = true; # This ensures normal shebangs work (#!/bin/bash)
|
||||
expressvpn.enable = true;
|
||||
locate.enable = true;
|
||||
fwupd.enable = true;
|
||||
"power-profiles-daemon".enable = true;
|
||||
upower = {
|
||||
enable = true;
|
||||
percentageLow = 20;
|
||||
percentageCritical = 5;
|
||||
percentageAction = 3;
|
||||
criticalPowerAction = "Hibernate";
|
||||
};
|
||||
|
||||
displayManager = {
|
||||
sddm = {
|
||||
@@ -215,7 +292,7 @@
|
||||
};
|
||||
autoLogin.enable = true;
|
||||
autoLogin.user = "chris";
|
||||
defaultSession = "hyprland";
|
||||
defaultSession = "hyprland-uwsm";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -245,6 +322,8 @@
|
||||
".local/share/zoxide"
|
||||
".local/share/Enpass"
|
||||
".local/share/Steam"
|
||||
".local/share/station"
|
||||
".local/state/station"
|
||||
".ssh"
|
||||
];
|
||||
files = [
|
||||
@@ -313,6 +392,8 @@
|
||||
# brave
|
||||
# go
|
||||
# lua
|
||||
lunar-client
|
||||
chromium
|
||||
direnv
|
||||
wiremix
|
||||
bluetui
|
||||
@@ -350,7 +431,9 @@
|
||||
enpass
|
||||
enpass-cli
|
||||
expressvpn
|
||||
# jellyfin-ffmpeg
|
||||
ffmpeg
|
||||
ffmpegthumbnailer
|
||||
gpu-screen-recorder
|
||||
inkscape
|
||||
krita
|
||||
libreoffice-fresh
|
||||
@@ -438,15 +521,22 @@
|
||||
inputs.walker.homeManagerModules.default
|
||||
# inputs.elephant.homeManagerModules.default
|
||||
];
|
||||
systemd.user.services = {
|
||||
walker = {
|
||||
Unit.Description = "Walker - Application Runner";
|
||||
Install.WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
elephant = {
|
||||
Unit.Description = "Elephant launcher backend";
|
||||
Install.WantedBy = ["graphical-session.target"];
|
||||
services = {
|
||||
swayosd.enable = true;
|
||||
};
|
||||
systemd.user = {
|
||||
enable = true;
|
||||
startServices = true;
|
||||
# services = {
|
||||
# walker = {
|
||||
# Unit.Description = "Walker - Application Runner";
|
||||
# Install.WantedBy = ["graphical-session.target"];
|
||||
# };
|
||||
# elephant = {
|
||||
# Unit.Description = "Elephant launcher backend";
|
||||
# Install.WantedBy = ["graphical-session.target"];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
programs = let
|
||||
lock-false = {
|
||||
|
||||
Reference in New Issue
Block a user