mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
more flake changes and added module impot helpers
This commit is contained in:
parent
fea6f8b961
commit
0a10e29581
6 changed files with 96 additions and 51 deletions
32
flake.nix
32
flake.nix
|
|
@ -1,11 +1,19 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||
suckless.url = "github:ISnortPennies/suckless";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
spicetify-nix = {
|
||||
url = "github:the-argus/spicetify-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
suckless = {
|
||||
url = "github:ISnortPennies/suckless";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
|
|
@ -51,17 +59,23 @@
|
|||
./systems/desktop.nix
|
||||
{
|
||||
environment.etc = {
|
||||
"nix/inputs/nixpkgs".source = inputs.nixpkgs.outPath;
|
||||
"nix/inputs/home-manager".source = inputs.home-manager.outPath;
|
||||
"nix/flake-channels/system".source = inputs.self;
|
||||
"nix/flake-channels/nixpkgs".source = inputs.nixpkgs.outPath;
|
||||
"nix/flake-channels/home-manager".source = inputs.home-manager.outPath;
|
||||
};
|
||||
nix = {
|
||||
nixPath = [
|
||||
"nixpkgs=/etc/nix/inputs/nixpkgs"
|
||||
"home-manager=/etc/nix/inputs/home-manager"
|
||||
"repl=/etc/nix/flake-channels/system/repl.nix"
|
||||
"nixpkgs=/etc/nix/flake-channels/nixpkgs"
|
||||
"home-manager=/etc/nix/flake-channels/home-manager"
|
||||
];
|
||||
#automatically get registry from input flakes
|
||||
registry =
|
||||
lib.attrsets.mapAttrs (
|
||||
{
|
||||
system.flake = self;
|
||||
default.flake = nixpkgs;
|
||||
}
|
||||
// lib.attrsets.mapAttrs (
|
||||
_: source: {
|
||||
flake = source;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue