host: Refactor a bit
This commit is contained in:
parent
1e5d1731b7
commit
c524472caa
@ -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;
|
||||
|
@ -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
7
modules/default.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
lib, pkgs
|
||||
}:
|
||||
|
||||
{
|
||||
mkHost = import ./host.nix { lib = lib; pkgs = pkgs; };
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
lib, pkgs
|
||||
}:
|
||||
|
||||
config: {
|
||||
userName
|
||||
, hostName
|
||||
, wireless ? false
|
||||
|
Loading…
Reference in New Issue
Block a user