fix: import dummy home-manager module to hosts without real home-manager
This commit is contained in:
parent
961bf3a7c5
commit
cd456da0e6
8
flake.lock
generated
8
flake.lock
generated
@ -589,16 +589,16 @@
|
|||||||
},
|
},
|
||||||
"lite-config": {
|
"lite-config": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748522697,
|
"lastModified": 1749323815,
|
||||||
"narHash": "sha256-TPmDm8A7LeyMcLoJu6/DsGkyeA8MkZbr6H7YVsYiD1w=",
|
"narHash": "sha256-NAhCvl7RZDL0XiQi7GMJ4KJsakQZDpKuIb5H9m3nhSI=",
|
||||||
"owner": "ataraxiasjel",
|
"owner": "ataraxiasjel",
|
||||||
"repo": "lite-config",
|
"repo": "lite-config",
|
||||||
"rev": "6ad11bd210d87035b7e5d58f6f68c16221354ff8",
|
"rev": "dc6717c8fbdabf81740a26c745316a5cb40e8c70",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "ataraxiasjel",
|
"owner": "ataraxiasjel",
|
||||||
"ref": "v0.9.0",
|
"ref": "v0.10.0",
|
||||||
"repo": "lite-config",
|
"repo": "lite-config",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
lite-config.url = "github:ataraxiasjel/lite-config/v0.9.0";
|
lite-config.url = "github:ataraxiasjel/lite-config/v0.10.0";
|
||||||
flake-registry = {
|
flake-registry = {
|
||||||
url = "github:nixos/flake-registry";
|
url = "github:nixos/flake-registry";
|
||||||
flake = false;
|
flake = false;
|
||||||
@ -91,6 +91,7 @@
|
|||||||
(final: prev: (import ./overlays inputs) final prev)
|
(final: prev: (import ./overlays inputs) final prev)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
importDummyHomeManager = true;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
flake-self = self;
|
flake-self = self;
|
||||||
secretsDir = ./secrets;
|
secretsDir = ./secrets;
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
options,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -23,13 +22,10 @@ in
|
|||||||
# gpuOverclock.ppfeaturemask = "0xffffffff";
|
# gpuOverclock.ppfeaturemask = "0xffffffff";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = mkIf (hasAttr "home-manager" options) {
|
home-manager = mkIf (hasAttr "users" config.home-manager) {
|
||||||
users.${defaultUser} = {
|
users.${defaultUser} = {
|
||||||
startupApplications = [ "${pkgs.corectrl}/bin/corectrl" ];
|
startupApplications = [ "${pkgs.corectrl}/bin/corectrl" ];
|
||||||
|
persist.state.directories = [ ".config/corectrl" ];
|
||||||
persist.state.directories = [
|
|
||||||
".config/corectrl"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
options,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -43,7 +42,7 @@ in
|
|||||||
};
|
};
|
||||||
programs.steam.gamescopeSession.args = [ "--adaptive-sync" ];
|
programs.steam.gamescopeSession.args = [ "--adaptive-sync" ];
|
||||||
|
|
||||||
home-manager = mkIf (hasAttr "home-manager" options) {
|
home-manager = mkIf (hasAttr "users" config.home-manager) {
|
||||||
users.${defaultUser} = {
|
users.${defaultUser} = {
|
||||||
startupApplications = [ "${config.programs.steam.package}/bin/steam" ];
|
startupApplications = [ "${config.programs.steam.package}/bin/steam" ];
|
||||||
persist.state.directories = [ ".local/share/Steam" ];
|
persist.state.directories = [ ".local/share/Steam" ];
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
options,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
inherit (builtins) hasAttr;
|
inherit (builtins) hasAttr;
|
||||||
inherit (lib) getExe mkEnableOption mkIf;
|
inherit (lib) getExe mkEnableOption mkIf;
|
||||||
@ -36,7 +31,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = mkIf (hasAttr "home-manager" options) {
|
home-manager = mkIf (hasAttr "users" config.home-manager) {
|
||||||
users.${defaultUser} = {
|
users.${defaultUser} = {
|
||||||
ataraxia.wayland.hyprland.enable = cfg.hyprland.enable;
|
ataraxia.wayland.hyprland.enable = cfg.hyprland.enable;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user