changed lockscreen to betterlockscreen.
This commit is contained in:
		
							parent
							
								
									073444e68c
								
							
						
					
					
						commit
						f617e06134
					
				
					 8 changed files with 60 additions and 43 deletions
				
			
		| 
						 | 
				
			
			@ -54,6 +54,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
			
		|||
        xkb.variant = "";
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      environment.shells = with pkgs; [nushell zsh];
 | 
			
		||||
      # Define a user account. Don't forget to set a password with ‘passwd’.
 | 
			
		||||
      users.users.${config.host.user} = {
 | 
			
		||||
        isNormalUser = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,11 +1,15 @@
 | 
			
		|||
# 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 + "/profiles/qemu-guest.nix")
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  modulesPath,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    (modulesPath + "/profiles/qemu-guest.nix")
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
 | 
			
		||||
| 
						 | 
				
			
			@ -13,18 +17,18 @@
 | 
			
		|||
  boot.kernelModules = ["kvm-intel"];
 | 
			
		||||
  boot.extraModulePackages = [];
 | 
			
		||||
 | 
			
		||||
  fileSystems."/" =
 | 
			
		||||
    { device = "/dev/disk/by-uuid/1127e866-28dc-4c07-92ec-07be4908880c";
 | 
			
		||||
  fileSystems."/" = {
 | 
			
		||||
    device = "/dev/disk/by-uuid/1127e866-28dc-4c07-92ec-07be4908880c";
 | 
			
		||||
    fsType = "ext4";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  fileSystems."/boot" =
 | 
			
		||||
    { device = "/dev/disk/by-uuid/CBA2-8A1E";
 | 
			
		||||
  fileSystems."/boot" = {
 | 
			
		||||
    device = "/dev/disk/by-uuid/CBA2-8A1E";
 | 
			
		||||
    fsType = "vfat";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  fileSystems."/home/gabe/nix-config-host" =
 | 
			
		||||
    { device = "nix-config-host";
 | 
			
		||||
  fileSystems."/home/gabe/nix-config-host" = {
 | 
			
		||||
    device = "nix-config-host";
 | 
			
		||||
    fsType = "virtiofs";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,8 +9,14 @@
 | 
			
		|||
    enable = true;
 | 
			
		||||
    displayManager = {
 | 
			
		||||
      defaultSession = "none+i3";
 | 
			
		||||
      autoLogin = {
 | 
			
		||||
        user = config.host.user;
 | 
			
		||||
        enable = true;
 | 
			
		||||
      };
 | 
			
		||||
      lightdm = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        greeters.gtk.enable = false;
 | 
			
		||||
        greeter.enable = false;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    windowManager.i3.enable = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -201,10 +207,20 @@
 | 
			
		|||
        };
 | 
			
		||||
        startup = [
 | 
			
		||||
          {
 | 
			
		||||
            command = "feh --no-fehbg --bg-fill ~/.background-image";
 | 
			
		||||
            command = "betterlockscreen --lock blur";
 | 
			
		||||
            notification = false;
 | 
			
		||||
            always = true;
 | 
			
		||||
          }
 | 
			
		||||
          {
 | 
			
		||||
            command = "betterlockscreen --wall";
 | 
			
		||||
            notification = false;
 | 
			
		||||
            always = true;
 | 
			
		||||
          }
 | 
			
		||||
          # {
 | 
			
		||||
          #   command = "~/.fehbg";
 | 
			
		||||
          #   notification = false;
 | 
			
		||||
          #   always = true;
 | 
			
		||||
          # }
 | 
			
		||||
        ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    lightlocker
 | 
			
		||||
    betterlockscreen
 | 
			
		||||
  ];
 | 
			
		||||
  home-manager.users.${config.host.user} = {
 | 
			
		||||
    config,
 | 
			
		||||
| 
						 | 
				
			
			@ -18,15 +18,12 @@
 | 
			
		|||
        mod = config.xsession.windowManager.i3.config.modifier;
 | 
			
		||||
      in {
 | 
			
		||||
        "${mod}+x" = ''
 | 
			
		||||
          exec --no-startup-id light-locker-command -l
 | 
			
		||||
          exec --no-startup-id betterlockscreen --lock blur
 | 
			
		||||
        '';
 | 
			
		||||
      };
 | 
			
		||||
      startup = [
 | 
			
		||||
        {
 | 
			
		||||
          command = "light-locker";
 | 
			
		||||
          notification = false;
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
    imports = [
 | 
			
		||||
      ../../home-manager/feh.nix
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,8 +46,7 @@
 | 
			
		|||
    ./voice.nix
 | 
			
		||||
    ./zellij
 | 
			
		||||
    ./tiny-irc.nix
 | 
			
		||||
    ./pass.nix
 | 
			
		||||
    ./gpg.nix
 | 
			
		||||
    ./ssh-agent.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  programs = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue