Compare commits

..

No commits in common. "e16674c81787227f1658fc24a14dea1a4cd8c960" and "3dcafb8c25373edc78406e98b7737ca22ac6ffb9" have entirely different histories.

4 changed files with 12 additions and 16 deletions

View File

@ -23,7 +23,7 @@
}; };
identityFile = lib.mkOption { identityFile = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = "Path to existing private key file."; description = "Path to existing identity file.";
default = "/etc/ssh/ssh_host_ed25519_key"; default = "/etc/ssh/ssh_host_ed25519_key";
}; };
gui = { gui = {

View File

@ -14,6 +14,7 @@ nixpkgs.lib.nixosSystem {
nix.registry.nixpkgs.flake = nixpkgs; nix.registry.nixpkgs.flake = nixpkgs;
identityFile = "/home/${globals.user}/.ssh/id_ed25519"; identityFile = "/home/${globals.user}/.ssh/id_ed25519";
gaming.steam = true; gaming.steam = true;
gaming.leagueoflegends = true;
gaming.legendary = true; gaming.legendary = true;
gui = { gui = {
enable = true; enable = true;

View File

@ -9,11 +9,11 @@ let
in { in {
config = { config = lib.mkIf config.services.xserver.enable {
services.xserver.windowManager = { services.xserver.windowManager = {
i3 = { i3 = {
enable = config.services.xserver.enable; enable = true;
package = pkgs.i3-gaps; package = pkgs.i3-gaps;
}; };
}; };
@ -25,7 +25,7 @@ in {
home-manager.users.${config.user} = { home-manager.users.${config.user} = {
xsession.windowManager.i3 = { xsession.windowManager.i3 = {
enable = config.services.xserver.enable; enable = true;
package = pkgs.i3-gaps; package = pkgs.i3-gaps;
config = let config = let
modifier = "Mod4"; # Super key modifier = "Mod4"; # Super key
@ -238,7 +238,7 @@ in {
}; };
programs.fish.functions = { programs.fish.functions = {
update-lock-screen = lib.mkIf config.services.xserver.enable { update-lock-screen = {
description = "Update lockscreen with wallpaper"; description = "Update lockscreen with wallpaper";
body = lockUpdate; body = lockUpdate;
}; };
@ -247,19 +247,17 @@ in {
# Update lock screen cache only if cache is empty # Update lock screen cache only if cache is empty
home.activation.updateLockScreenCache = home.activation.updateLockScreenCache =
let cacheDir = "${config.homePath}/.cache/betterlockscreen/current"; let cacheDir = "${config.homePath}/.cache/betterlockscreen/current";
in lib.mkIf config.services.xserver.enable in config.home-manager.users.${config.user}.lib.dag.entryAfter
(config.home-manager.users.${config.user}.lib.dag.entryAfter [ "writeBoundary" ] ''
[ "writeBoundary" ] '' if [ ! -d ${cacheDir} ] || [ -z "$(ls ${cacheDir})" ]; then
if [ ! -d ${cacheDir} ] || [ -z "$(ls ${cacheDir})" ]; then $DRY_RUN_CMD ${lockUpdate}
$DRY_RUN_CMD ${lockUpdate} fi
fi '';
'');
}; };
# Ref: https://github.com/betterlockscreen/betterlockscreen/blob/next/system/betterlockscreen%40.service # Ref: https://github.com/betterlockscreen/betterlockscreen/blob/next/system/betterlockscreen%40.service
systemd.services.lock = { systemd.services.lock = {
enable = config.services.xserver.enable;
description = "Lock the screen on resume from suspend"; description = "Lock the screen on resume from suspend";
before = [ "sleep.target" "suspend.target" ]; before = [ "sleep.target" "suspend.target" ];
serviceConfig = { serviceConfig = {

View File

@ -10,9 +10,6 @@
# Check for other OSes and make them available # Check for other OSes and make them available
useOSProber = true; useOSProber = true;
# Attempt to display GRUB on widescreen monitor
gfxmodeEfi = "1920x1080";
# Install GRUB onto the boot disk # Install GRUB onto the boot disk
# device = config.fileSystems."/boot".device; # device = config.fileSystems."/boot".device;