forked from Bun/nixos-config
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-manager.users."${config.sysusers.main}" = {
|
||||||
home = {
|
home = {
|
||||||
guifull.enable = true;
|
desktop.enable = true;
|
||||||
stateVersion = lib.mkForce config.system.stateVersion;
|
stateVersion = lib.mkForce config.system.stateVersion;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{ ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./boot
|
./boot
|
||||||
./disko
|
./disko
|
||||||
./hardware
|
./hardware
|
||||||
|
./services
|
||||||
./user
|
./user
|
||||||
../../modules/system
|
../../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, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users."${config.sysusers.main}".home = {
|
home-manager.users."${config.sysusers.main}".home = {
|
||||||
guifull.enable = true;
|
desktop.enable = true;
|
||||||
|
school.enable = true;
|
||||||
stateVersion = lib.mkForce config.system.stateVersion;
|
stateVersion = lib.mkForce config.system.stateVersion;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,12 +9,5 @@
|
||||||
libvirtd.enable = true;
|
libvirtd.enable = true;
|
||||||
vmware.host.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/com.yuezk.qt"
|
||||||
"school/.config/remmina"
|
"school/.config/remmina"
|
||||||
"school/.config/teams-for-linux"
|
"school/.config/teams-for-linux"
|
||||||
|
"school/.vmware"
|
||||||
|
"school/vmware"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "${config.home.homeDirectory}/Projects/nixos-config";
|
flake = "${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}/dirs/Projects/nixos-config";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
|
|
|
@ -6,16 +6,16 @@
|
||||||
allowOther = false;
|
allowOther = false;
|
||||||
removePrefixDirectory = true;
|
removePrefixDirectory = true;
|
||||||
directories = [
|
directories = [
|
||||||
"home/Keepers"
|
"dirs/Keepers"
|
||||||
"home/Projects"
|
"dirs/Projects"
|
||||||
|
|
||||||
"nix/.local/state/nix/profiles"
|
"nix/.local/state/nix/profiles"
|
||||||
"secure/.ssh"
|
"secure/.ssh"
|
||||||
] ++ (if config.home.desktop.enable then [
|
] ++ (if config.home.desktop.enable then [
|
||||||
"home/Documents"
|
"dirs/Documents"
|
||||||
"home/Games"
|
"dirs/Games"
|
||||||
"home/Photos"
|
"dirs/Photos"
|
||||||
"home/Videos"
|
"dirs/Videos"
|
||||||
|
|
||||||
"secure/.pki"
|
"secure/.pki"
|
||||||
"state/.local/state/wireplumber"
|
"state/.local/state/wireplumber"
|
||||||
|
|
|
@ -9,5 +9,6 @@
|
||||||
./ssh
|
./ssh
|
||||||
./tlp
|
./tlp
|
||||||
./userborn
|
./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