flake: start refactoring
This commit is contained in:
parent
4b8923b5f5
commit
8b4e41c968
8 changed files with 62 additions and 76 deletions
41
flake.nix
41
flake.nix
|
|
@ -38,59 +38,42 @@
|
|||
treefmt-nix,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pkgs =
|
||||
extraOverlays: system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = extraOverlays;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
|
||||
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
pkgs = (
|
||||
pkgs [
|
||||
nix-vscode-extensions.overlays.default
|
||||
niri.overlays.niri
|
||||
] system
|
||||
);
|
||||
};
|
||||
|
||||
modules = [
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
nix-vscode-extensions.overlays.default
|
||||
niri.overlays.niri
|
||||
];
|
||||
}
|
||||
./hosts/main-laptop/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.fedfer = import ./hosts/main-laptop/home.nix;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
}
|
||||
stylix.nixosModules.stylix
|
||||
niri.nixosModules.niri
|
||||
];
|
||||
};
|
||||
|
||||
veneficium-main-homelab-nixos = nixpkgs.lib.nixosSystem rec {
|
||||
veneficium-main-homelab-nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
pkgs = (pkgs [ ] system);
|
||||
inherit self;
|
||||
};
|
||||
|
||||
modules = [
|
||||
arion.nixosModules.arion
|
||||
./hosts/main-homelab/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
formatter.x86_64-linux =
|
||||
(treefmt-nix.lib.evalModule (pkgs [ ] "x86_64-linux") ./treefmt.nix).config.build.wrapper;
|
||||
(treefmt-nix.lib.evalModule nixpkgs.legacyPackages."x86_64-linux" ./treefmt.nix)
|
||||
.config.build.wrapper;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue