nixos refactor
This commit is contained in:
parent
351e067f7f
commit
d43fe69478
13
flake.nix
13
flake.nix
@ -38,18 +38,13 @@
|
||||
home = import ./home {
|
||||
inherit system pkgs modules home-manager;
|
||||
};
|
||||
nixos = import ./nixos {
|
||||
inherit system nixpkgs modules hosts;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
laptop = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./hardware-configuration.nix
|
||||
./sys/laptop
|
||||
./modules/dnscrypt
|
||||
hosts.nixosModule
|
||||
];
|
||||
};
|
||||
laptop = nixos.laptop;
|
||||
};
|
||||
homeConfigurations = {
|
||||
ivand = home.ivand;
|
||||
|
@ -7,9 +7,5 @@
|
||||
"$HOME/.local/bin"
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
nv.enable = true;
|
||||
shell.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ system, pkgs, ide, my-overlay, ... }:
|
||||
{
|
||||
gaming = import ./gaming { };
|
||||
dnscrypt = import ./dnscrypt { };
|
||||
dnscrypt = import ./dnscrypt;
|
||||
packages = import ./packages { inherit pkgs; };
|
||||
programs = import ./programs { inherit pkgs; };
|
||||
nvim = import ./programs/neovim {
|
||||
|
11
nixos/default.nix
Normal file
11
nixos/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ system, nixpkgs, modules, hosts }: {
|
||||
laptop = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
../hardware-configuration.nix
|
||||
./laptop
|
||||
modules.dnscrypt
|
||||
hosts.nixosModule
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user