diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-11-22 03:29:56 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-11-22 03:29:56 -0500 |
commit | 90854019fc940473a0ce4fff29c402e54841f704 (patch) | |
tree | b7eb2a97dbdbfe151ff77a23c1b54a2399dbe311 | |
parent | 3727e7bd79fe75ff18b1dc6af494dbda940e0971 (diff) |
Another day
-rw-r--r-- | common/nvidia.nix | 6 | ||||
-rw-r--r-- | common/ssh.nix | 1 | ||||
-rw-r--r-- | flake.lock | 6 | ||||
-rw-r--r-- | hosts/battlestation/configuration.nix | 2 | ||||
-rw-r--r-- | software/tex.nix | 7 | ||||
-rw-r--r-- | software/windowmanager.nix | 20 |
6 files changed, 38 insertions, 4 deletions
diff --git a/common/nvidia.nix b/common/nvidia.nix new file mode 100644 index 0000000..df60136 --- /dev/null +++ b/common/nvidia.nix @@ -0,0 +1,6 @@ +{hardware, ...}: + +{ + # Import this config if gpu passthrough in docker containers + hardware.nvidia-container-toolkit.enable = true; +} diff --git a/common/ssh.nix b/common/ssh.nix index de931f5..d633fbb 100644 --- a/common/ssh.nix +++ b/common/ssh.nix @@ -9,6 +9,7 @@ AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ] UseDns = true; X11Forwarding = false; + GatewayPorts = "yes"; PermitRootLogin = "no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" }; }; @@ -280,11 +280,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1731139594, - "narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=", + "lastModified": 1731319897, + "narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2", + "rev": "dc460ec76cbff0e66e269457d7b728432263166c", "type": "github" }, "original": { diff --git a/hosts/battlestation/configuration.nix b/hosts/battlestation/configuration.nix index e97ee83..104b08c 100644 --- a/hosts/battlestation/configuration.nix +++ b/hosts/battlestation/configuration.nix @@ -11,11 +11,13 @@ ../../common/main-user.nix ../../common/services.nix ../../software/common.nix + ../../software/tex.nix ../../software/windowmanager.nix ../../software/entertainment.nix ../../software/development.nix ../../common/dropbox.nix ../../common/ssh.nix + ../../common/nvidia.nix ]; # Bootloader. diff --git a/software/tex.nix b/software/tex.nix new file mode 100644 index 0000000..0107b27 --- /dev/null +++ b/software/tex.nix @@ -0,0 +1,7 @@ +{nixpkgs, environment, pkgs, ...}: + +{ + environment.systemPackages = with pkgs; [ + texlive.combined.scheme-full + ]; +} diff --git a/software/windowmanager.nix b/software/windowmanager.nix index d43b9fe..c89913b 100644 --- a/software/windowmanager.nix +++ b/software/windowmanager.nix @@ -40,7 +40,7 @@ playerctl # control next/previous song glib # for gdbus needed by volumectl ]; - + # Screen capture/sharing: xdg.portal = { enable = true; @@ -65,4 +65,22 @@ # Force wayland on electron environment.sessionVariables.NIXOS_OZONE_WL = "1"; + # Trigger updates to waybar + services.cron = { + enable = true; + systemCronJobs = [ + # Time & Date + "* * * * * kill -42 $(pidof waybar)" + "* * * * * kill -40 $(pidof waybar)" + # Battery + "* * * * * kill -35 $(pidof waybar)" + # Yadm Dotfiles + "*/10 * * * * kill -41 $(pidof waybar)" + # Emails + "*/5 * * * * kill -46 $(pidof waybar)" + # Gentoo News + "*/30 * * * * kill -45 $(pidof waybar)" + ]; + }; + } |