organize
This commit is contained in:
parent
5a74c0f0c3
commit
91a90350a9
8 changed files with 49 additions and 24 deletions
48
flake.nix
48
flake.nix
|
@ -4,12 +4,12 @@
|
|||
inputs = {
|
||||
# NixOS official package source, using the nixos-23.11 branch here
|
||||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
hardware.url = "github:nixos/nixos-hardware";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs-unstable.follows = "nixpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
|
||||
|
@ -28,25 +28,33 @@
|
|||
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs-unstable, home-manager, ... }@inputs: {
|
||||
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
forAllSystems = nixpkgs.lib.genAttrs [
|
||||
"x86_64-linux"
|
||||
];
|
||||
inherit (nixpkgs) lib;
|
||||
configVars = import ./vars { inherit inputs lib; };
|
||||
specialArgs = { inherit inputs outputs configVars nixpkgs; };
|
||||
in
|
||||
{
|
||||
# Please replace my-nixos with your hostname
|
||||
nixosConfigurations.Lenni = nixpkgs-unstable.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# Import the previous configuration.nix we used,
|
||||
# so the old configuration file still takes effect
|
||||
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
#home-manager.users.willifan = import ./users/willifan/home;
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||
}
|
||||
./hosts
|
||||
./users/willifan
|
||||
];
|
||||
nixosConfigurations = {
|
||||
Lenni = lib.nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
#home-manager.users.willifan = import ./users/willifan/home;
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||
}
|
||||
./hosts
|
||||
./users/willifan
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue