commented/tidied display.nix
This commit is contained in:
parent
cfef8df3d8
commit
3b06c3d3d0
1 changed files with 27 additions and 41 deletions
|
|
@ -9,73 +9,57 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
## Boot/GRUB options
|
||||||
boot = {
|
boot = {
|
||||||
bootspec.enable = true;
|
bootspec.enable = true;
|
||||||
consoleLogLevel = 0;
|
consoleLogLevel = 0;
|
||||||
initrd.verbose = false;
|
initrd.verbose = false;
|
||||||
kernelParams = [
|
kernelParams = [ # grub kernel parameters, set to prevent excessive output on boot
|
||||||
"quiet"
|
"quiet" # quiet log level
|
||||||
"splash"
|
"splash" # uhhh
|
||||||
"vga=current"
|
"vga=current" # use current video adapater
|
||||||
"loglevel=3"
|
"loglevel=3" # minimal output on boot
|
||||||
"rd.systemd.show_status=false"
|
"rd.systemd.show_status=false" # uhh
|
||||||
"rd.udev.log_level=0"
|
"rd.udev.log_level=0" # more minimising of output on boot
|
||||||
"udev.log_priority=3"
|
"udev.log_priority=3" # more minimising of output on boot
|
||||||
"boot.shell_on_fail"
|
"boot.shell_on_fail" # reboots to basic uefi shell on boot failure
|
||||||
#"i915.fastboot=1"
|
#"i915.fastboot=1"
|
||||||
"plymouth.use-simpledrm"
|
"plymouth.use-simpledrm" # tweak to allow plymouth animations to run smoother
|
||||||
];
|
];
|
||||||
loader = {
|
loader = {
|
||||||
timeout = 5;
|
timeout = 5; # 5 second timeout to default selection
|
||||||
grub = {
|
grub = {
|
||||||
configurationName = "${version}";
|
configurationName = "${version}"; # prints SerenitOS version instead of NixOS version
|
||||||
#theme = "${pkgs.minimal-grub-theme}";
|
splashImage = null; # hides splashimage
|
||||||
#backgroundColor = "#000000";
|
timeoutStyle = "hidden"; # hides timeout
|
||||||
#font = "${pkgs.spleen}/share/fonts/spleen-32x64";
|
|
||||||
#fontSize = 16;
|
|
||||||
splashImage = null;
|
|
||||||
timeoutStyle = "hidden";
|
|
||||||
#extraConfig = ''
|
|
||||||
#'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
plymouth = {
|
plymouth = { # enables plymouth boot animations
|
||||||
enable = true;
|
enable = true;
|
||||||
#logo = pkgs.fetchurl {
|
theme = "circle"; # uses a funky anim wei found
|
||||||
#url = "https://nixos.org/logo/nixos-hires.png";
|
themePackages = with pkgs; # uhhh
|
||||||
#hash = "1ivzgd7iz0i06y36p8m5w48fd8pjqwxhdaavc0pxs7w1g7mcy5si";
|
|
||||||
#};
|
|
||||||
#font = "${pkgs.spleen}/share/fonts/spleen-32x64";
|
|
||||||
theme = "circle";
|
|
||||||
themePackages = with pkgs;
|
|
||||||
[
|
[
|
||||||
(adi1090x-plymouth-themes.override {
|
(adi1090x-plymouth-themes.override {
|
||||||
selected_themes = [ "circle" ];
|
selected_themes = [ "circle" ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
#extraConfig = '''';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.mime.enable =
|
## Display related options
|
||||||
true; # may be unneeded here as already declared in `home/desktop/xdg-mime.nix`
|
xdg.mime.enable = true; # may be unneeded here as already declared in `home/desktop/xdg-mime.nix`
|
||||||
|
services.xserver.enable = true; # xserver still needed for xwayland stuff
|
||||||
services = {
|
|
||||||
xserver.enable = true; # xserver still needed for xwayland stuff
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.targets.sway = { # To start sway related services
|
systemd.user.targets.sway = { # To start sway related services
|
||||||
description = "to start sway related services";
|
description = "to start sway related services";
|
||||||
wants = [ "graphical-session.target" ];
|
wants = [ "graphical-session.target" ];
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables = { # environment variables, duh
|
variables = { # environment variables, duh
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
XDG_CURRENT_DESKTOP = "sway";
|
XDG_CURRENT_DESKTOP = "sway";
|
||||||
};
|
};
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [ # theme packages
|
||||||
xorg.xhost # i actually dont remember what this does
|
xorg.xhost # i actually dont remember what this does
|
||||||
## Themes
|
## Themes
|
||||||
minimal-grub-theme
|
minimal-grub-theme
|
||||||
|
|
@ -87,8 +71,7 @@
|
||||||
materia-theme-transparent
|
materia-theme-transparent
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
programs = { # xwayland and sway variables
|
||||||
programs = {
|
|
||||||
xwayland = { # Standard(?) xwayland implementation
|
xwayland = { # Standard(?) xwayland implementation
|
||||||
enable = true;
|
enable = true;
|
||||||
#package = [ ];
|
#package = [ ];
|
||||||
|
|
@ -112,6 +95,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
## Utter junk from here on out, pls fix
|
||||||
|
## - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
## I put fonts here because i didn't know where tf else to put them lol
|
## I put fonts here because i didn't know where tf else to put them lol
|
||||||
## duplicate to home-manager config ?
|
## duplicate to home-manager config ?
|
||||||
fonts = {
|
fonts = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue