major refactor and reorg
This commit is contained in:
parent
fd3cedfa93
commit
3c69cf9c74
86 changed files with 811 additions and 984 deletions
46
flake.nix
46
flake.nix
|
@ -88,53 +88,21 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = {nixpkgs, home-manager, sops-nix, musnix, self, ... } @ inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
# Supported systems for your flake packages, shell, etc.
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
# This is a function that generates an attribute by calling a function you
|
||||
# pass to it, with each system as an argument
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
|
||||
in {
|
||||
|
||||
packages = forAllSystems (system: import ./packages nixpkgs.legacyPackages.${system});
|
||||
|
||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||
|
||||
overlays = import ./overlays {inherit inputs;};
|
||||
|
||||
outputs = {nixpkgs, home-manager, self, ... } @ inputs: {
|
||||
nixosConfigurations = {
|
||||
eddie = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
inherit self inputs;
|
||||
};
|
||||
modules = [
|
||||
sops-nix.nixosModules.sops
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||
inputs.kmonad.nixosModules.default
|
||||
musnix.nixosModules.musnix
|
||||
./system/eddie/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"emenel" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
|
||||
modules = [
|
||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
sops-nix.homeManagerModules.sops
|
||||
./home/home.nix
|
||||
inputs.musnix.nixosModules.musnix
|
||||
home-manager.nixosModules.home-manager
|
||||
./hosts/eddie
|
||||
./homes/emenel/default.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue