add desktop and laptop config option
This commit is contained in:
parent
04e4aa6164
commit
ff99a6803a
8 changed files with 63 additions and 45 deletions
|
|
@ -1,9 +1,4 @@
|
|||
{ pkgs, inputs, username, ...}:
|
||||
let
|
||||
packages = with pkgs; [
|
||||
fish
|
||||
];
|
||||
in
|
||||
{ pkgs, inputs, username, host, ...}:
|
||||
{
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
home-manager = {
|
||||
|
|
@ -11,7 +6,10 @@ in
|
|||
useGlobalPkgs = true;
|
||||
extraSpecialArgs = { inherit inputs username; };
|
||||
users.${username} = {
|
||||
imports = [ (import ./../home) ];
|
||||
imports =
|
||||
if (host == "desktop") then
|
||||
[ ./../home/default.desktop.nix ]
|
||||
else [ ./../home ];
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "/home/${username}";
|
||||
home.stateVersion = "22.11";
|
||||
|
|
|
|||
Reference in a new issue