flake.nix: Add comment, devShells and cleanup redendant inputs
Some checks failed
check / check (push) Failing after 0s
Some checks failed
check / check (push) Failing after 0s
This commit is contained in:
parent
3e3185f184
commit
e17efa10cf
3 changed files with 36 additions and 8 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ result
|
||||||
*.swp
|
*.swp
|
||||||
*.qcow2
|
*.qcow2
|
||||||
.idea/
|
.idea/
|
||||||
|
.direnv
|
38
flake.nix
38
flake.nix
|
@ -52,12 +52,8 @@
|
||||||
outputs = inputs@{
|
outputs = inputs@{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
nur,
|
|
||||||
home-manager,
|
home-manager,
|
||||||
agenix,
|
agenix,
|
||||||
nix-flatpak,
|
|
||||||
nix-doom-emacs,
|
|
||||||
nixgl,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -67,16 +63,21 @@
|
||||||
{ name = "perso-desktop"; system = "x86_64-linux"; }
|
{ name = "perso-desktop"; system = "x86_64-linux"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
home-modules = [
|
home-modules = with inputs; [
|
||||||
nix-flatpak.homeManagerModules.nix-flatpak
|
nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
nix-doom-emacs.hmModule
|
nix-doom-emacs.hmModule
|
||||||
];
|
];
|
||||||
|
|
||||||
overlays = [
|
overlays = with inputs; [
|
||||||
nur.overlay
|
nur.overlay
|
||||||
nixgl.overlay
|
nixgl.overlay
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
|
#####################################################################
|
||||||
|
#####################################################################
|
||||||
|
# Configure all nixos configurations
|
||||||
|
#####################################################################
|
||||||
|
#####################################################################
|
||||||
nixosConfigurations = nixpkgs.lib.foldl (c: s:
|
nixosConfigurations = nixpkgs.lib.foldl (c: s:
|
||||||
c // {
|
c // {
|
||||||
${s.name} = nixpkgs.lib.nixosSystem {
|
${s.name} = nixpkgs.lib.nixosSystem {
|
||||||
|
@ -98,6 +99,11 @@
|
||||||
};
|
};
|
||||||
}) {} systems;
|
}) {} systems;
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
#####################################################################
|
||||||
|
# Configure home configuration for all others systems like Arch Linux
|
||||||
|
#####################################################################
|
||||||
|
#####################################################################
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
perso-home = home-manager.lib.homeManagerConfiguration rec {
|
perso-home = home-manager.lib.homeManagerConfiguration rec {
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; inherit overlays; };
|
pkgs = import nixpkgs { system = "x86_64-linux"; inherit overlays; };
|
||||||
|
@ -108,5 +114,25 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
#####################################################################
|
||||||
|
# Configure development shell for all systems and merge with all
|
||||||
|
# previous configurations with //
|
||||||
|
#####################################################################
|
||||||
|
#####################################################################
|
||||||
|
// flake-utils.lib.eachSystem flake-utils.lib.allSystems (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells = {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
nixd
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue