changed lockscreen to betterlockscreen.
This commit is contained in:
		
							parent
							
								
									073444e68c
								
							
						
					
					
						commit
						f617e06134
					
				
					 8 changed files with 60 additions and 43 deletions
				
			
		| 
						 | 
					@ -27,7 +27,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
				
			||||||
      host = {
 | 
					      host = {
 | 
				
			||||||
        user = "gabe";
 | 
					        user = "gabe";
 | 
				
			||||||
        gui.enable = true;
 | 
					        gui.enable = true;
 | 
				
			||||||
        isVm=true;
 | 
					        isVm = true;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      networking.hostName = "archlaptop-vm"; # Define your hostname.
 | 
					      networking.hostName = "archlaptop-vm"; # Define your hostname.
 | 
				
			||||||
      # Set your time zone.
 | 
					      # Set your time zone.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,7 +27,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
				
			||||||
      host = {
 | 
					      host = {
 | 
				
			||||||
        user = "gabe";
 | 
					        user = "gabe";
 | 
				
			||||||
        gui.enable = true;
 | 
					        gui.enable = true;
 | 
				
			||||||
        isVm=true;
 | 
					        isVm = true;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      networking.hostName = "workstation-vm"; # Define your hostname.
 | 
					      networking.hostName = "workstation-vm"; # Define your hostname.
 | 
				
			||||||
      # Set your time zone.
 | 
					      # Set your time zone.
 | 
				
			||||||
| 
						 | 
					@ -54,6 +54,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
				
			||||||
        xkb.variant = "";
 | 
					        xkb.variant = "";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      environment.shells = with pkgs; [nushell zsh];
 | 
				
			||||||
      # Define a user account. Don't forget to set a password with ‘passwd’.
 | 
					      # Define a user account. Don't forget to set a password with ‘passwd’.
 | 
				
			||||||
      users.users.${config.host.user} = {
 | 
					      users.users.${config.host.user} = {
 | 
				
			||||||
        isNormalUser = true;
 | 
					        isNormalUser = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,34 +1,38 @@
 | 
				
			||||||
# Do not modify this file!  It was generated by ‘nixos-generate-config’
 | 
					# Do not modify this file!  It was generated by ‘nixos-generate-config’
 | 
				
			||||||
# and may be overwritten by future invocations.  Please make changes
 | 
					# and may be overwritten by future invocations.  Please make changes
 | 
				
			||||||
# to /etc/nixos/configuration.nix instead.
 | 
					# to /etc/nixos/configuration.nix instead.
 | 
				
			||||||
{ config, lib, pkgs, modulesPath, ... }:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  imports =
 | 
					  config,
 | 
				
			||||||
    [ (modulesPath + "/profiles/qemu-guest.nix")
 | 
					  lib,
 | 
				
			||||||
    ];
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  modulesPath,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}: {
 | 
				
			||||||
 | 
					  imports = [
 | 
				
			||||||
 | 
					    (modulesPath + "/profiles/qemu-guest.nix")
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
 | 
					  boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
 | 
				
			||||||
  boot.initrd.kernelModules = [ ];
 | 
					  boot.initrd.kernelModules = [];
 | 
				
			||||||
  boot.kernelModules = [ "kvm-intel" ];
 | 
					  boot.kernelModules = ["kvm-intel"];
 | 
				
			||||||
  boot.extraModulePackages = [ ];
 | 
					  boot.extraModulePackages = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  fileSystems."/" =
 | 
					  fileSystems."/" = {
 | 
				
			||||||
    { device = "/dev/disk/by-uuid/1127e866-28dc-4c07-92ec-07be4908880c";
 | 
					    device = "/dev/disk/by-uuid/1127e866-28dc-4c07-92ec-07be4908880c";
 | 
				
			||||||
      fsType = "ext4";
 | 
					    fsType = "ext4";
 | 
				
			||||||
    };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  fileSystems."/boot" =
 | 
					  fileSystems."/boot" = {
 | 
				
			||||||
    { device = "/dev/disk/by-uuid/CBA2-8A1E";
 | 
					    device = "/dev/disk/by-uuid/CBA2-8A1E";
 | 
				
			||||||
      fsType = "vfat";
 | 
					    fsType = "vfat";
 | 
				
			||||||
    };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  fileSystems."/home/gabe/nix-config-host" =
 | 
					  fileSystems."/home/gabe/nix-config-host" = {
 | 
				
			||||||
    { device = "nix-config-host";
 | 
					    device = "nix-config-host";
 | 
				
			||||||
      fsType = "virtiofs";
 | 
					    fsType = "virtiofs";
 | 
				
			||||||
    };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  swapDevices = [ ];
 | 
					  swapDevices = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
 | 
					  # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
 | 
				
			||||||
  # (the default) this is the recommended approach. When using systemd-networkd it's
 | 
					  # (the default) this is the recommended approach. When using systemd-networkd it's
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,8 +9,14 @@
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    displayManager = {
 | 
					    displayManager = {
 | 
				
			||||||
      defaultSession = "none+i3";
 | 
					      defaultSession = "none+i3";
 | 
				
			||||||
 | 
					      autoLogin = {
 | 
				
			||||||
 | 
					        user = config.host.user;
 | 
				
			||||||
 | 
					        enable = true;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
      lightdm = {
 | 
					      lightdm = {
 | 
				
			||||||
        enable = true;
 | 
					        enable = true;
 | 
				
			||||||
 | 
					        greeters.gtk.enable = false;
 | 
				
			||||||
 | 
					        greeter.enable = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    windowManager.i3.enable = true;
 | 
					    windowManager.i3.enable = true;
 | 
				
			||||||
| 
						 | 
					@ -201,10 +207,20 @@
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        startup = [
 | 
					        startup = [
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            command = "feh --no-fehbg --bg-fill ~/.background-image";
 | 
					            command = "betterlockscreen --lock blur";
 | 
				
			||||||
            notification = false;
 | 
					            notification = false;
 | 
				
			||||||
            always = true;
 | 
					            always = true;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            command = "betterlockscreen --wall";
 | 
				
			||||||
 | 
					            notification = false;
 | 
				
			||||||
 | 
					            always = true;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          # {
 | 
				
			||||||
 | 
					          #   command = "~/.fehbg";
 | 
				
			||||||
 | 
					          #   notification = false;
 | 
				
			||||||
 | 
					          #   always = true;
 | 
				
			||||||
 | 
					          # }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,7 +5,7 @@
 | 
				
			||||||
  ...
 | 
					  ...
 | 
				
			||||||
}: {
 | 
					}: {
 | 
				
			||||||
  environment.systemPackages = with pkgs; [
 | 
					  environment.systemPackages = with pkgs; [
 | 
				
			||||||
    lightlocker
 | 
					    betterlockscreen
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  home-manager.users.${config.host.user} = {
 | 
					  home-manager.users.${config.host.user} = {
 | 
				
			||||||
    config,
 | 
					    config,
 | 
				
			||||||
| 
						 | 
					@ -18,15 +18,12 @@
 | 
				
			||||||
        mod = config.xsession.windowManager.i3.config.modifier;
 | 
					        mod = config.xsession.windowManager.i3.config.modifier;
 | 
				
			||||||
      in {
 | 
					      in {
 | 
				
			||||||
        "${mod}+x" = ''
 | 
					        "${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
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,13 +18,13 @@
 | 
				
			||||||
        description = "enable GUI";
 | 
					        description = "enable GUI";
 | 
				
			||||||
        default = false;
 | 
					        default = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      isLaptop=lib.mkEnableOption {
 | 
					      isLaptop = lib.mkEnableOption {
 | 
				
			||||||
        description="machine is a laptop";
 | 
					        description = "machine is a laptop";
 | 
				
			||||||
        default=false;
 | 
					        default = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      isVm=lib.mkEnableOption {
 | 
					      isVm = lib.mkEnableOption {
 | 
				
			||||||
        description="machine is a virtual machine";
 | 
					        description = "machine is a virtual machine";
 | 
				
			||||||
        default=false;
 | 
					        default = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,8 @@
 | 
				
			||||||
      name = "FiraCode Nerd Font";
 | 
					      name = "FiraCode Nerd Font";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    theme = "Gruvbox Dark";
 | 
					    theme = "Gruvbox Dark";
 | 
				
			||||||
    settings={
 | 
					    settings = {
 | 
				
			||||||
      background_opacity="0.8";
 | 
					      background_opacity = "0.8";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,8 +46,7 @@
 | 
				
			||||||
    ./voice.nix
 | 
					    ./voice.nix
 | 
				
			||||||
    ./zellij
 | 
					    ./zellij
 | 
				
			||||||
    ./tiny-irc.nix
 | 
					    ./tiny-irc.nix
 | 
				
			||||||
    ./pass.nix
 | 
					    ./ssh-agent.nix
 | 
				
			||||||
    ./gpg.nix
 | 
					 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs = {
 | 
					  programs = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue