mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-12-22 00:05:58 -05:00
flake: move nixpkgs config to flake
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-build / aly_petalburg-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-build / aly_petalburg-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
6977b48085
commit
33e8f27b11
|
@ -1,4 +1,4 @@
|
|||
{self, ...}: {
|
||||
{...}: {
|
||||
nix = {
|
||||
gc = {
|
||||
automatic = true;
|
||||
|
@ -36,12 +36,4 @@
|
|||
trusted-users = ["aly"];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true; # Allow unfree packages
|
||||
overlays = [
|
||||
self.inputs.nur.overlays.default
|
||||
self.overlays.default
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
28
flake.nix
28
flake.nix
|
@ -79,13 +79,19 @@
|
|||
forAllLinuxSystems = f:
|
||||
self.inputs.nixpkgs.lib.genAttrs allLinuxSystems (system:
|
||||
f {
|
||||
pkgs = import self.inputs.nixpkgs {inherit system;};
|
||||
pkgs = import self.inputs.nixpkgs {
|
||||
inherit overlays system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
});
|
||||
|
||||
forAllSystems = f:
|
||||
self.inputs.nixpkgs.lib.genAttrs allSystems (system:
|
||||
f {
|
||||
pkgs = import self.inputs.nixpkgs {inherit system;};
|
||||
pkgs = import self.inputs.nixpkgs {
|
||||
inherit overlays system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
});
|
||||
|
||||
forAllHosts = self.inputs.nixpkgs.lib.genAttrs [
|
||||
|
@ -96,6 +102,11 @@
|
|||
"rustboro"
|
||||
"slateport"
|
||||
];
|
||||
|
||||
overlays = [
|
||||
self.inputs.nur.overlays.default
|
||||
self.overlays.default
|
||||
];
|
||||
in {
|
||||
devShells = forAllLinuxSystems ({pkgs}: {
|
||||
default = pkgs.mkShell {
|
||||
|
@ -127,11 +138,8 @@
|
|||
"aly@petalburg" = self.inputs.home-manager.lib.homeManagerConfiguration {
|
||||
extraSpecialArgs = {inherit self;};
|
||||
pkgs = import self.inputs.nixpkgs {
|
||||
overlays = [
|
||||
self.inputs.nur.overlays.default
|
||||
self.overlays.default
|
||||
];
|
||||
|
||||
inherit overlays;
|
||||
config.allowUnfree = true; # Allow unfree packages
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
|
@ -184,6 +192,7 @@
|
|||
host:
|
||||
self.inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit self;};
|
||||
|
||||
modules = [
|
||||
./hosts/${host}
|
||||
self.inputs.agenix.nixosModules.default
|
||||
|
@ -200,6 +209,11 @@
|
|||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
inherit overlays;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue