Bootloader
This commit is contained in:
116
flake.nix
116
flake.nix
@@ -94,10 +94,60 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.loader = {
|
boot = {
|
||||||
systemd-boot.enable = true;
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
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 = {
|
environment = {
|
||||||
persistence."/persist" = {
|
persistence."/persist" = {
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
@@ -115,10 +165,15 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
|
v4l-utils
|
||||||
|
brightnessctl
|
||||||
|
satty
|
||||||
hyprpaper
|
hyprpaper
|
||||||
libnotify
|
libnotify
|
||||||
mako
|
mako
|
||||||
qt6.qtwayland
|
qt6.qtwayland
|
||||||
|
grim
|
||||||
|
gnome-calculator
|
||||||
hypridle
|
hypridle
|
||||||
hyprlock
|
hyprlock
|
||||||
hyprpicker
|
hyprpicker
|
||||||
@@ -185,6 +240,18 @@
|
|||||||
};
|
};
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
programs = {
|
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 = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
@@ -192,6 +259,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs-unstable.hyprland;
|
package = pkgs-unstable.hyprland;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
|
withUWSM = true;
|
||||||
};
|
};
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -206,6 +274,15 @@
|
|||||||
envfs.enable = true; # This ensures normal shebangs work (#!/bin/bash)
|
envfs.enable = true; # This ensures normal shebangs work (#!/bin/bash)
|
||||||
expressvpn.enable = true;
|
expressvpn.enable = true;
|
||||||
locate.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 = {
|
displayManager = {
|
||||||
sddm = {
|
sddm = {
|
||||||
@@ -215,7 +292,7 @@
|
|||||||
};
|
};
|
||||||
autoLogin.enable = true;
|
autoLogin.enable = true;
|
||||||
autoLogin.user = "chris";
|
autoLogin.user = "chris";
|
||||||
defaultSession = "hyprland";
|
defaultSession = "hyprland-uwsm";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -245,6 +322,8 @@
|
|||||||
".local/share/zoxide"
|
".local/share/zoxide"
|
||||||
".local/share/Enpass"
|
".local/share/Enpass"
|
||||||
".local/share/Steam"
|
".local/share/Steam"
|
||||||
|
".local/share/station"
|
||||||
|
".local/state/station"
|
||||||
".ssh"
|
".ssh"
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
@@ -313,6 +392,8 @@
|
|||||||
# brave
|
# brave
|
||||||
# go
|
# go
|
||||||
# lua
|
# lua
|
||||||
|
lunar-client
|
||||||
|
chromium
|
||||||
direnv
|
direnv
|
||||||
wiremix
|
wiremix
|
||||||
bluetui
|
bluetui
|
||||||
@@ -350,7 +431,9 @@
|
|||||||
enpass
|
enpass
|
||||||
enpass-cli
|
enpass-cli
|
||||||
expressvpn
|
expressvpn
|
||||||
# jellyfin-ffmpeg
|
ffmpeg
|
||||||
|
ffmpegthumbnailer
|
||||||
|
gpu-screen-recorder
|
||||||
inkscape
|
inkscape
|
||||||
krita
|
krita
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
@@ -438,15 +521,22 @@
|
|||||||
inputs.walker.homeManagerModules.default
|
inputs.walker.homeManagerModules.default
|
||||||
# inputs.elephant.homeManagerModules.default
|
# inputs.elephant.homeManagerModules.default
|
||||||
];
|
];
|
||||||
systemd.user.services = {
|
services = {
|
||||||
walker = {
|
swayosd.enable = true;
|
||||||
Unit.Description = "Walker - Application Runner";
|
|
||||||
Install.WantedBy = ["graphical-session.target"];
|
|
||||||
};
|
|
||||||
elephant = {
|
|
||||||
Unit.Description = "Elephant launcher backend";
|
|
||||||
Install.WantedBy = ["graphical-session.target"];
|
|
||||||
};
|
};
|
||||||
|
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
|
programs = let
|
||||||
lock-false = {
|
lock-false = {
|
||||||
|
|||||||
Reference in New Issue
Block a user