Compare commits

..

3 Commits

Author SHA1 Message Date
0bbb789be9 Use variables where possible
Path to openssh package is accessed using ${pkgs.openssh}
    Variable for ssh socket is set based on the built in XDG_RUNTIME_DIR variable
2023-05-05 12:33:33 +02:00
e4dc2f74ad Set a default terminal variable 2023-05-05 12:33:12 +02:00
4b40e992d5 Add containerisation programs for nix 2023-05-05 11:47:53 +02:00
3 changed files with 15 additions and 2 deletions

View File

@ -39,6 +39,7 @@ in
EDITOR = "nvim"; EDITOR = "nvim";
VISUAL = "nvim"; VISUAL = "nvim";
SUDO_EDITOR = "nvim"; SUDO_EDITOR = "nvim";
TERMINAL = "kitty";
}; };
# remove nano from default packages # remove nano from default packages
defaultPackages = [ pkgs.perl pkgs.rsync pkgs.strace ]; defaultPackages = [ pkgs.perl pkgs.rsync pkgs.strace ];
@ -156,6 +157,17 @@ in
# Enable thumbnailer service # Enable thumbnailer service
services.tumbler.enable = true; services.tumbler.enable = true;
virtualisation = {
podman = {
enable = true;
# clean up regularly
autoPrune = {
enable = true;
dates = "weekly";
};
};
};
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];

View File

@ -71,7 +71,7 @@ in
Service = { Service = {
Type = "simple"; Type = "simple";
Environment = "SSH_AUTH_SOCK=%t/ssh-agent.socket"; Environment = "SSH_AUTH_SOCK=%t/ssh-agent.socket";
ExecStart = "/run/current-system/sw/bin/ssh-agent -D -a $SSH_AUTH_SOCK"; ExecStart = "${pkgs.openssh}/bin/ssh-agent -D -a $SSH_AUTH_SOCK";
}; };
Install = { Install = {
WantedBy = [ "default.target" ]; WantedBy = [ "default.target" ];
@ -80,7 +80,7 @@ in
}; };
# user environment variables # user environment variables
sessionVariables = { sessionVariables = {
SSH_AUTH_SOCK = "/run/user/1000/ssh-agent.socket"; SSH_AUTH_SOCK = "${builtins.getEnv"XDG_RUNTIME_DIR"}/ssh-agent.socket";
}; };
}; };

View File

@ -23,6 +23,7 @@
polkit_gnome # graphical authentication agent for polkit polkit_gnome # graphical authentication agent for polkit
freetype # font rendering and configuration freetype # font rendering and configuration
open-vm-tools # running on vmware open-vm-tools # running on vmware
podman # containers
]; ];
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [