dregil: Refactor configuration
This commit is contained in:
parent
5da20a0e67
commit
ef1f55cd8d
2 changed files with 14 additions and 15 deletions
|
|
@ -68,7 +68,11 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations."dregil" = import ./hosts/dregil { inherit inputs; };
|
nixosConfigurations."dregil" = nixpkgs-unstable.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
modules = [ ./hosts/dregil ];
|
||||||
|
};
|
||||||
homeConfigurations = import ./outputs/homeConfigurations inputs;
|
homeConfigurations = import ./outputs/homeConfigurations inputs;
|
||||||
|
|
||||||
nixOnDroidConfigurations.default = with inputs;
|
nixOnDroidConfigurations.default = with inputs;
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,12 @@
|
||||||
{ inputs, ... }:
|
{ lib, config, pkgs, inputs, ... }: {
|
||||||
let
|
imports = [
|
||||||
inherit (inputs.nixpkgs-unstable.lib) nixosSystem;
|
({ inputs, lib, ... }: {
|
||||||
|
nixpkgs = {
|
||||||
system = "x86_64-linux";
|
config.allowUnfree = true;
|
||||||
|
overlays = with inputs; [ emacs.overlay ];
|
||||||
pkgs = import inputs.nixpkgs-unstable {
|
};
|
||||||
inherit system;
|
nix.registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
||||||
config = { allowUnfree = true; };
|
})
|
||||||
};
|
|
||||||
in nixosSystem {
|
|
||||||
inherit system pkgs;
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
modules = [
|
|
||||||
../../modules/security.nix
|
../../modules/security.nix
|
||||||
../../modules/common-system.nix
|
../../modules/common-system.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue