host: Refactor a bit

This commit is contained in:
PapaTutuWawa 2021-09-01 16:37:36 +02:00
parent 1e5d1731b7
commit c524472caa
4 changed files with 15 additions and 14 deletions

View File

@ -1,12 +1,8 @@
{ config, pkgs, lib, ... }:
let
mkHost = import ../modules/host.nix {
config = config;
lib = lib;
pkgs = pkgs;
};
in mkHost {
mkHost = (import ../modules { lib = lib; pkgs = pkgs; }).mkHost;
in mkHost config {
userName = "alexander";
hostName = "ayame";
wireless = true;

View File

@ -1,12 +1,8 @@
{ config, lib, pkgs, ... }:
let
mkHost = import ../modules/host.nix {
config = config;
lib = lib;
pkgs = pkgs;
};
in mkHost {
mkHost = (import ../modules { lib = lib; pkgs = pkgs; }).mkHost;
in mkHost config {
userName = "alexander";
hostName = "miku";
overlays = [ "nur" "steam" "unstable" "simple" "custom" "emacs" ];

7
modules/default.nix Normal file
View File

@ -0,0 +1,7 @@
{
lib, pkgs
}:
{
mkHost = import ./host.nix { lib = lib; pkgs = pkgs; };
}

View File

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }:
{
lib, pkgs
}:
config: {
userName
, hostName
, wireless ? false