Skip to content

Commit

Permalink
Fix some modules and move stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Nov 5, 2024
1 parent 49139b9 commit 5eb3371
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 11 deletions.
1 change: 1 addition & 0 deletions hosts/alexandria/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ in
])
(with self.nixosModules; [
hetzner
nginx
])
inputs.disko.nixosModules.disko
inputs.sops-nix.nixosModules.sops
Expand Down
1 change: 1 addition & 0 deletions hosts/byzantium/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ in
])
(with self.nixosModules; [
hetzner
nginx
])
inputs.disko.nixosModules.disko
../../disko/hetzner-osdisk.nix
Expand Down
3 changes: 1 addition & 2 deletions modules/attic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

systemd.services.attic-watch-store = {
wantedBy = [ "multi-user.target" ];
after = [
requires = [
"network-online.target"
"nss-lookup.target"
];
requires = [ "network-online.target" ];
environment.HOME = "/var/lib/attic-watch-store";
path = [ pkgs.attic-client ];

Expand Down
17 changes: 16 additions & 1 deletion modules/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,19 @@
};

security = {
polkit.enable = true;
polkit = {
enable = true;

# allow me to use systemd without password every time
extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units" &&
subject.user == "${user.name}") {
return polkit.Result.YES;
}
});
'';
};

sudo = {
execWheelOnly = true;
Expand Down Expand Up @@ -89,6 +101,9 @@
vim
wget
neofetch
pciutils
usbutils
dig
];
};
}
1 change: 0 additions & 1 deletion modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ in
];
server = with modules; [
headless
nginx
node-exporter
ssh-access
];
Expand Down
3 changes: 0 additions & 3 deletions modules/home/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,11 @@
# utils
tree
rsync
pciutils
usbutils
ffmpeg-full
nix-diff
p7zip
yq-go
file
jq
dig
];
}
8 changes: 6 additions & 2 deletions modules/home/discord/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{ pkgs, inputs, ... }:
{
pkgs,
inputs,
...
}:
{
imports = [ inputs.nixcord.homeManagerModules.nixcord ];

Expand All @@ -20,7 +24,7 @@
};

pnpmDeps = prev.pnpmDeps.overrideAttrs (_: {
outputHash = "sha256-trrzmHL6PSQKwfaDweIzyfFjGo7SQg5dzaLJvweKsxg=";
outputHash = "sha256-K+VHyBOZPWL5OhhcrqdUb2ieTICfS6kyBIC1L+AbMR0=";
});

# Stop crashing when settings are read-only
Expand Down
3 changes: 1 addition & 2 deletions modules/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
networkmanager = {
enable = true;
wifi = {
# backend = "iwd";
backend = "iwd";
powersave = true;
};
dns = "systemd-resolved";
};

firewall.enable = true;
Expand Down

0 comments on commit 5eb3371

Please sign in to comment.