Fix swaylock on work machine

This commit is contained in:
Riley Apeldoorn 2023-12-22 12:26:06 +01:00 committed by Riley Apeldoorn
parent 78abfc12eb
commit ca5ee9ed20
3 changed files with 5 additions and 5 deletions

View file

@ -66,9 +66,10 @@
# Configurations for non-NixOS machines. # Configurations for non-NixOS machines.
homeConfigurations = with home-manager.lib; { homeConfigurations = with home-manager.lib; {
"dev-lt-63" = homeManagerConfiguration { "dev-lt-63" = homeManagerConfiguration {
extraSpecialArgs = args // { age = args.config.age; }; extraSpecialArgs = args;
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
modules = [ modules = [
agenix.homeManagerModules.default
./system/dev-lt-63/home.nix ./system/dev-lt-63/home.nix
./shared/home ./shared/home
]; ];

View file

@ -57,6 +57,7 @@ in with lib; {
extraConfig = '' extraConfig = ''
bindsym --release ${mod}+d exec ${sc}/bin/sc bindsym --release ${mod}+d exec ${sc}/bin/sc
exec "${(import nixpkgs-latest {}).google-chrome}/bin/google-chrome-stable --ozone-platform-hint=auto --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --app=https://calendar.google.com"
''; '';
config = rec { config = rec {
@ -114,7 +115,7 @@ in with lib; {
"${mod}+Alt+a" = "layout toggle stacking splitv"; "${mod}+Alt+a" = "layout toggle stacking splitv";
"${mod}+Alt+s" = "layout toggle tabbed splith"; "${mod}+Alt+s" = "layout toggle tabbed splith";
"${mod}+Escape" = "exec ${pkgs.swaylock}/bin/swaylock"; "${mod}+Escape" = if config.isNixos then "exec ${pkgs.swaylock}/bin/swaylock" else "exec swaylock";
"${mod}+Space" = "exec pkill -SIGUSR1 waybar"; "${mod}+Space" = "exec pkill -SIGUSR1 waybar";
"${mod}+Return" = "exec ${terminal}"; "${mod}+Return" = "exec ${terminal}";

View file

@ -3,7 +3,7 @@
# needed to do extra configuration for example, consider putting # needed to do extra configuration for example, consider putting
# the affected programs in their own modules. # the affected programs in their own modules.
{ pkgs, age, ... }: { { pkgs, ... }: {
home.packages = (with pkgs; [ home.packages = (with pkgs; [
eva eva
@ -45,6 +45,4 @@
}; };
}; };
xdg.configFile."deemix/.arl".source = age.secrets."arl".path;
} }