Use flake-utils-plus

This commit is contained in:
Gabriel Ebner 2021-05-22 21:35:47 +02:00
parent 116f447e39
commit b526b0ccc4
4 changed files with 61 additions and 18 deletions

@ -31,6 +31,21 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"locked": {
"lastModified": 1618217525,
"narHash": "sha256-WGrhVczjXTiswQaoxQ+0PTfbLNeOQM6M36zvLn78AYg=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c6169a2772643c4a93a0b5ac1c61e296cba68544",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"neovim-flake": { "neovim-flake": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
@ -95,7 +110,26 @@
"root": { "root": {
"inputs": { "inputs": {
"neovim-overlay": "neovim-overlay", "neovim-overlay": "neovim-overlay",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"utils": "utils"
}
},
"utils": {
"inputs": {
"flake-utils": "flake-utils_2"
},
"locked": {
"lastModified": 1619358717,
"narHash": "sha256-FkEOIW82ClvUBtD8aqPediM8FERldsOyjPIyapVa65I=",
"owner": "gytis-ivaskevicius",
"repo": "flake-utils-plus",
"rev": "e7ae270a23695b50fbb6b72759a7fb1e3340ca86",
"type": "github"
},
"original": {
"owner": "gytis-ivaskevicius",
"repo": "flake-utils-plus",
"type": "github"
} }
} }
}, },

@ -2,22 +2,33 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
neovim-overlay.url = "github:nix-community/neovim-nightly-overlay"; utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
neovim-overlay.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, neovim-overlay, ... }: { neovim-overlay = {
nixosConfigurations = let url = "github:nix-community/neovim-nightly-overlay";
neovimOverlay = { pkgs, ... }: { nixpkgs.overlays = [ neovim-overlay.overlay ]; }; inputs.nixpkgs.follows = "nixpkgs";
in {
petalius = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./petalius.nix neovimOverlay ];
};
flammea = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./flammea.nix neovimOverlay ];
};
}; };
}; };
outputs = inputs@{ self, nixpkgs, neovim-overlay, utils, ... }: utils.lib.systemFlake {
inherit self inputs;
sharedOverlays = [
neovim-overlay.overlay
];
channels.nixpkgs.input = nixpkgs;
hostDefaults = {
modules = [
utils.nixosModules.saneFlakeDefaults
];
};
hosts = {
petalius.modules = [ ./petalius.nix ];
flammea.modules = [ ./flammea.nix ];
};
};
} }

@ -13,7 +13,6 @@
./atmega.nix ./atmega.nix
./v4l2loopback.nix ./v4l2loopback.nix
./huion.nix ./huion.nix
./unstable-nix.nix
./spacenav.nix ./spacenav.nix
]; ];

@ -12,7 +12,6 @@
./atmega.nix ./atmega.nix
./v4l2loopback.nix ./v4l2loopback.nix
./huion.nix ./huion.nix
./unstable-nix.nix
]; ];
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;