fix: fix all the missed errors again
This commit is contained in:
1 parent
cf6f3772ab
commit
cad486346a
6 files changed
+36
-10
No files matched your search
@@ -1,5 +1,17 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig ? null,
|
||||
...
|
||||
}:
|
||||
let
|
||||
mkDefaultSharedAttrs =
|
||||
base: defaults: lib.mapAttrs (_: v: lib.mkDefault v) (lib.filterAttrs (k: _: base ? ${k}) defaults);
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../options.nix
|
||||
|
||||
./git.nix
|
||||
./firefox.nix
|
||||
./fish.nix
|
||||
@@ -15,4 +27,11 @@
|
||||
};
|
||||
|
||||
xdg.enable = true;
|
||||
|
||||
nix-leonhard = lib.mkIf (osConfig != null) (
|
||||
mkDefaultSharedAttrs config.nix-leonhard (osConfig.nix-leonhard or { })
|
||||
);
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
home.stateVersion = "25.11";
|
||||
}
|
||||
+5
-3
@@ -14,17 +14,19 @@ let
|
||||
inherit specialArgs;
|
||||
modules = modules ++ [
|
||||
../system
|
||||
../options.nix
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.leonhard = ../home/default.nix;
|
||||
home-manager.users.leonhard = ../home;
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
desktop = mkNixosSystem [ ./desktop ];
|
||||
server = mkNixosSystem [ ./server ];
|
||||
server = mkNixosSystem [
|
||||
./server
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
}
|
||||
@@ -12,14 +12,20 @@
|
||||
./vaultwarden.nix
|
||||
];
|
||||
|
||||
options.nix-leonhard.domain =
|
||||
with lib.types;
|
||||
lib.mkOption {
|
||||
options.nix-leonhard = with lib.types; {
|
||||
domain = lib.mkOption {
|
||||
type = str;
|
||||
default = "";
|
||||
description = "Domain of the device.";
|
||||
};
|
||||
publicKeys = lib.mkOption {
|
||||
type = listOf str;
|
||||
default = [ ];
|
||||
description = "Public keys for ssh login.";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
nix-leonhard.graphical = false;
|
||||
|
||||
users.users.leonhard = {
|
||||
@@ -78,4 +84,5 @@
|
||||
locations."/.well-known/".root = config.security.acme.defaults.webroot;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -23,7 +23,4 @@
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
home.stateVersion = "25.11";
|
||||
}
|
||||
@@ -14,7 +14,6 @@ homeManagerConfiguration {
|
||||
modules = [
|
||||
./base.nix
|
||||
../home
|
||||
../options.nix
|
||||
{
|
||||
nix-leonhard.graphical = false;
|
||||
nix-leonhard.neovim.enable = true;
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../options.nix
|
||||
|
||||
./fish.nix
|
||||
./hyprland.nix
|
||||
./ly.nix
|
||||
|
||||
Reference in new issue
Block a user