feat: add home-manager directly in NixOS-95
For users that already use home-manager, this shouldn't change anything (they just have to pin the home-manager input to their own version). However for users that currently do not use home-manager this will allow them to not care about it. This way, home-manager will become an 'implementation detail'
This commit is contained in:
parent
11686d0192
commit
8b2e87c159
4 changed files with 17 additions and 8 deletions
10
flake.lock
generated
10
flake.lock
generated
|
|
@ -22,15 +22,15 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1753250450,
|
||||
"narHash": "sha256-i+CQV2rPmP8wHxj0aq4siYyohHwVlsh40kV89f3nw1s=",
|
||||
"owner": "nixos",
|
||||
"lastModified": 1755615617,
|
||||
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "fc02ee70efb805d3b2865908a13ddd4474557ecf",
|
||||
"rev": "20075955deac2583bb12f07151c2df830ef346b4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
|
|
|
|||
|
|
@ -3,10 +3,14 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }: {
|
||||
nixosModules.default = import ./nixos95;
|
||||
outputs = { self, nixpkgs, home-manager,... }: {
|
||||
nixosModules.default = import ./nixos95 { inherit home-manager; };
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@
|
|||
cfg = config.nixos95;
|
||||
in lib.mkIf cfg.enable {
|
||||
|
||||
|
||||
home-manager.users.${cfg.user}.home.stateVersion = lib.mkDefault "25.05";
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.xfce.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ...}: let
|
||||
{ home-manager }: { config, lib, ...}: let
|
||||
cfg = config.nixos95;
|
||||
in {
|
||||
|
||||
|
|
@ -14,6 +14,8 @@ in {
|
|||
};
|
||||
|
||||
imports = [
|
||||
home-manager.nixosModules.home-manager
|
||||
|
||||
./core.nix
|
||||
./desktop.nix
|
||||
./keybinds.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue