feat(home-manager): try managing home-manager configuration through configuration.nix
This will allow nixos-rebuild build-vm to already have a configured system, simplifing testing.
This commit is contained in:
parent
6dd0a1f9c8
commit
5eec06c38d
1 changed files with 16 additions and 1 deletions
|
|
@ -2,17 +2,32 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-24.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
myHomeManagerConfiguration = {
|
||||
url = "path:../home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nixos-06cb-009a-fingerprint-sensor = {
|
||||
url = "github:ahbnr/nixos-06cb-009a-fingerprint-sensor";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs = { nixpkgs, nixos-06cb-009a-fingerprint-sensor, ... }:
|
||||
outputs = { nixpkgs, home-manager, myHomeManagerConfiguration, nixos-06cb-009a-fingerprint-sensor, ... }:
|
||||
{
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.khais = myHomeManagerConfiguration;
|
||||
}
|
||||
nixos-06cb-009a-fingerprint-sensor.nixosModules.open-fprintd
|
||||
nixos-06cb-009a-fingerprint-sensor.nixosModules.python-validity
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue