nixos refactor

This commit is contained in:
Ivan Dimitrov 2023-11-18 09:34:47 +02:00
parent 351e067f7f
commit d43fe69478
5 changed files with 16 additions and 14 deletions

View File

@ -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;

View File

@ -7,9 +7,5 @@
"$HOME/.local/bin"
];
};
programs = {
nv.enable = true;
shell.enable = true;
};
}

View File

@ -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
View File

@ -0,0 +1,11 @@
{ system, nixpkgs, modules, hosts }: {
laptop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
../hardware-configuration.nix
./laptop
modules.dnscrypt
hosts.nixosModule
];
};
}