Skip to content

Commit

Permalink
chore(nix): some refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle committed Nov 13, 2024
1 parent 69bba0d commit 7230def
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
};

services = {
minecraft-server.enable = true;
nginx.enable = true;
minecraft-server.enable = false;
nginx.enable = false;
unbound.enable = false;
};

Expand Down
10 changes: 1 addition & 9 deletions modules/modules.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, agenix, ... }: {
{
imports = [
./firmware.nix
./locales.nix
Expand All @@ -7,12 +7,4 @@
./secrets.nix
./users.nix
];

environment.systemPackages = with pkgs; [
screenfetch
agenix
git
vim
tldr
];
}
14 changes: 9 additions & 5 deletions modules/users.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, agenix, ... }:
let
hddMountScript = import ../pkgs/hdd-mount.nix { inherit pkgs; };
hddUnmountScript = import ../pkgs/hdd-unmount.nix { inherit pkgs; };
Expand All @@ -11,15 +11,19 @@ in
packages = with pkgs; [
curl
btop
podman-compose
dnsutils
];
] ++ pkgs.lib.ifEnable config.virtualisation.podman.enable [ pkgs.podman-compose ];
uid = 1000;
};
users.groups.users.gid = 100;

/* group which provides access to restic agenix secrets */
users.groups.backup = { };
environment.systemPackages = with pkgs; [
screenfetch
agenix
git
vim
tldr
];

users.users.root.packages = [ hddMountScript hddUnmountScript ];
}

0 comments on commit 7230def

Please sign in to comment.