host: Refactor a bit
This commit is contained in:
parent
1e5d1731b7
commit
c524472caa
@ -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;
|
||||||
|
@ -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
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
|
userName
|
||||||
, hostName
|
, hostName
|
||||||
, wireless ? false
|
, wireless ? false
|
||||||
|
Loading…
Reference in New Issue
Block a user