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, ... }: { config, pkgs, lib, ... }:
let let
mkHost = import ../modules/host.nix { mkHost = (import ../modules { lib = lib; pkgs = pkgs; }).mkHost;
config = config; in mkHost config {
lib = lib;
pkgs = pkgs;
};
in mkHost {
userName = "alexander"; userName = "alexander";
hostName = "ayame"; hostName = "ayame";
wireless = true; wireless = true;

View File

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