chore: flake update

This commit is contained in:
m3tm3re
2026-03-07 11:44:04 +01:00
parent b08be9132b
commit 4ae2bb0f48
10 changed files with 263 additions and 87 deletions

View File

@@ -1,5 +1,13 @@
# Common configuration for all hosts
{ config, pkgs, lib, inputs, outputs, ... }: {
{
config,
pkgs,
lib,
inputs,
outputs,
system,
...
}: {
imports = [
./extraServices
./ports.nix
@@ -7,14 +15,13 @@
inputs.home-manager.nixosModules.home-manager
];
environment.pathsToLink =
[ "/share/xdg-desktop-portal" "/share/applications" ];
environment.pathsToLink = ["/share/xdg-desktop-portal" "/share/applications"];
home-manager = {
useUserPackages = true;
extraSpecialArgs = {
inherit inputs outputs;
videoDrivers = config.services.xserver.videoDrivers or [ ];
inherit inputs outputs system;
videoDrivers = config.services.xserver.videoDrivers or [];
};
};
@@ -31,7 +38,7 @@
inputs.m3ta-nixpkgs.overlays.default
inputs.m3ta-nixpkgs.overlays.modifications
(outputs.overlays.mkLlmAgentsOverlay system)
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
@@ -65,9 +72,10 @@
options = "--delete-older-than 30d";
};
optimise.automatic = true;
registry = (lib.mapAttrs (_: flake: { inherit flake; }))
registry =
(lib.mapAttrs (_: flake: {inherit flake;}))
((lib.filterAttrs (_: lib.isType "flake")) inputs);
nixPath = [ "/etc/nix/path" ];
nixPath = ["/etc/nix/path"];
};
users.defaultUserShell = pkgs.nushell;
}

View File

@@ -2,10 +2,4 @@
imports = [
./cloud-init.nix
];
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
}

View File

@@ -49,10 +49,4 @@
};
displayManager.gdm.enable = true;
};
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
}

View File

@@ -4,10 +4,4 @@
./containers
./traefik.nix
];
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
}

View File

@@ -31,10 +31,4 @@
};
displayManager.gdm.enable = true;
};
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
}