Add vmware to system, simplify homedir logic, add more Hidden
This commit is contained in:
parent
f75eec5484
commit
04560dfbc5
10 changed files with 37 additions and 17 deletions
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
home-manager.users."${config.sysusers.main}" = {
|
||||
home = {
|
||||
guifull.enable = true;
|
||||
desktop.enable = true;
|
||||
stateVersion = lib.mkForce config.system.stateVersion;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{ ... }:
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./boot
|
||||
./disko
|
||||
./hardware
|
||||
./services
|
||||
./user
|
||||
../../modules/system
|
||||
];
|
||||
|
|
9
hosts/hidden/services/default.nix
Normal file
9
hosts/hidden/services/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
networking.useNetworkd = lib.mkForce false;
|
||||
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
vmware.host.enable = true;
|
||||
};
|
||||
}
|
|
@ -1,7 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
home-manager.users."${config.sysusers.main}".home = {
|
||||
guifull.enable = true;
|
||||
desktop.enable = true;
|
||||
school.enable = true;
|
||||
stateVersion = lib.mkForce config.system.stateVersion;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,12 +9,5 @@
|
|||
libvirtd.enable = true;
|
||||
vmware.host.enable = true;
|
||||
};
|
||||
|
||||
nixpkgs.allowUnfreePackages = [ "vmware-workstation" ];
|
||||
|
||||
environment.persistence."/persist".users.${config.sysusers.main}.directories = [
|
||||
"vmware"
|
||||
".vmware"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
"school/.config/com.yuezk.qt"
|
||||
"school/.config/remmina"
|
||||
"school/.config/teams-for-linux"
|
||||
"school/.vmware"
|
||||
"school/vmware"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
flake = "${config.home.homeDirectory}/Projects/nixos-config";
|
||||
flake = "${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}/dirs/Projects/nixos-config";
|
||||
};
|
||||
|
||||
home.shellAliases = {
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
allowOther = false;
|
||||
removePrefixDirectory = true;
|
||||
directories = [
|
||||
"home/Keepers"
|
||||
"home/Projects"
|
||||
"dirs/Keepers"
|
||||
"dirs/Projects"
|
||||
|
||||
"nix/.local/state/nix/profiles"
|
||||
"secure/.ssh"
|
||||
] ++ (if config.home.desktop.enable then [
|
||||
"home/Documents"
|
||||
"home/Games"
|
||||
"home/Photos"
|
||||
"home/Videos"
|
||||
"dirs/Documents"
|
||||
"dirs/Games"
|
||||
"dirs/Photos"
|
||||
"dirs/Videos"
|
||||
|
||||
"secure/.pki"
|
||||
"state/.local/state/wireplumber"
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
./ssh
|
||||
./tlp
|
||||
./userborn
|
||||
./vmware
|
||||
];
|
||||
}
|
||||
|
|
13
modules/system/services/general/vmware/default.nix
Normal file
13
modules/system/services/general/vmware/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf config.virtualisation.vmware.host.enable {
|
||||
virtualisation.vmware.host = {
|
||||
extraConfig = ''
|
||||
mks.gl.allowUnsupportedDrivers = "TRUE"
|
||||
mks.vk.allowUnsupportedDevices = "TRUE"
|
||||
'';
|
||||
};
|
||||
|
||||
nixpkgs.allowUnfreePackages = [ "vmware-workstation" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue