add home-manager to root
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22921 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22920 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22919 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #22918 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.not522 Hydra build #22922 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #22923 of nixos-config:pr618:nixosConfigurations.not522-installer
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22921 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22920 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22919 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #22918 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.not522 Hydra build #22922 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #22923 of nixos-config:pr618:nixosConfigurations.not522-installer
This commit is contained in:
parent
fcc5491f8d
commit
fba9346c89
6 changed files with 56 additions and 0 deletions
21
flake.lock
21
flake.lock
|
@ -91,6 +91,26 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1730490306,
|
||||
"narHash": "sha256-AvCVDswOUM9D368HxYD25RsSKp+5o0L0/JHADjLoD38=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "1743615b61c7285976f85b303a36cdf88a556503",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"impermanence": {
|
||||
"locked": {
|
||||
"lastModified": 1729068498,
|
||||
|
@ -290,6 +310,7 @@
|
|||
"flake-utils": "flake-utils",
|
||||
"flakey-profile": "flakey-profile",
|
||||
"gitignore": "gitignore",
|
||||
"home-manager": "home-manager",
|
||||
"impermanence": "impermanence",
|
||||
"lix": "lix",
|
||||
"lix-module": "lix-module",
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
url = "github:hercules-ci/gitignore.nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
impermanence = {
|
||||
url = "github:nix-community/impermanence";
|
||||
};
|
||||
|
|
3
users/common/default.nix
Normal file
3
users/common/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{...}: {
|
||||
home.stateVersion = "24.11";
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./home-manager.nix
|
||||
./root
|
||||
];
|
||||
users.mutableUsers = false;
|
||||
|
|
26
users/home-manager.nix
Normal file
26
users/home-manager.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
home-manager,
|
||||
impermanence,
|
||||
inputs,
|
||||
inputs',
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
"${home-manager}/nixos"
|
||||
];
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
backupFileExtension = "backup";
|
||||
extraSpecialArgs =
|
||||
inputs
|
||||
// {
|
||||
inherit inputs inputs';
|
||||
systemConfig = config;
|
||||
};
|
||||
sharedModules = [
|
||||
./common
|
||||
];
|
||||
};
|
||||
}
|
|
@ -14,4 +14,5 @@
|
|||
directories = ["/root/.cache/nix"]; # for sanity
|
||||
files = ["/root/.bash_history"];
|
||||
};
|
||||
home-manager.users.root = {};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue