mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Use the self attribute directly
This commit is contained in:
parent
ec62701a29
commit
6626303217
4 changed files with 26 additions and 7 deletions
16
flake.nix
16
flake.nix
|
|
@ -33,20 +33,30 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = {nixpkgs, ...} @ inputs: let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
...
|
||||
} @ inputs: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
north = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = {
|
||||
inherit self;
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/north
|
||||
"${./.}/users/seb/@north.nix"
|
||||
];
|
||||
};
|
||||
inspiron = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = {
|
||||
inherit self;
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/inspiron
|
||||
"${./.}/users/seb/@inspiron.nix"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue