WIP: rewrite config #618

Draft
darkkirb wants to merge 345 commits from rewrite into main
3 changed files with 8 additions and 6 deletions
Showing only changes of commit 1e7d2808cb - Show all commits

View file

@ -1,4 +1,8 @@
{disko, ...}: {
{
disko,
home-manager,
...
}: {
imports = [
./riscv.nix
./containers/autoconfig.nix
@ -7,5 +11,6 @@
./secrets/sops.nix
disko.nixosModules.default
./hydra/build-server.nix
"${home-manager}/nixos"
];
}

View file

@ -2,6 +2,7 @@
config,
lib,
pkgs,
inTester,
...
}:
with lib; {
@ -13,7 +14,7 @@ with lib; {
};
};
config = mkIf config.environment.impermanence.enable {
config = mkIf (config.environment.impermanence.enable && config.environment.impermanence.users != []) {
home-manager.users = listToAttrs (map (name: {
inherit name;
value.home.persistence.default = {

View file

@ -1,14 +1,10 @@
{
home-manager,
impermanence,
inputs,
inputs',
config,
...
}: {
imports = [
"${home-manager}/nixos"
];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;