-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix vm: add documentation, add Gnome/X11 VM
- Loading branch information
Showing
6 changed files
with
233 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: { | ||
services.xserver = { | ||
enable = true; | ||
displayManager = { | ||
gdm = { | ||
enable = true; | ||
autoSuspend = false; | ||
}; | ||
}; | ||
desktopManager = { | ||
gnome = { | ||
enable = true; | ||
}; | ||
}; | ||
}; | ||
|
||
environment.systemPackages = [ | ||
pkgs.gnomeExtensions.no-overview | ||
]; | ||
|
||
environment.gnome.excludePackages = with pkgs; [ | ||
atomix | ||
baobab | ||
cheese | ||
epiphany | ||
evince | ||
file-roller | ||
geary | ||
gnome-backgrounds | ||
gnome-calculator | ||
gnome-calendar | ||
gnome-clocks | ||
gnome-connections | ||
gnome-contacts | ||
gnome-disk-utility | ||
gnome-extension-manager | ||
gnome-logs | ||
gnome-maps | ||
gnome-music | ||
gnome-photos | ||
gnome-software | ||
gnome-system-monitor | ||
gnome-text-editor | ||
gnome-themes-extra | ||
gnome-tour | ||
gnome-user-docs | ||
gnome-weather | ||
hitori | ||
iagno | ||
loupe | ||
nautilus | ||
orca | ||
seahorse | ||
simple-scan | ||
snapshot | ||
sushi | ||
tali | ||
totem | ||
yelp | ||
]; | ||
|
||
services.gnome = { | ||
gnome-browser-connector.enable = false; | ||
gnome-initial-setup.enable = false; | ||
gnome-online-accounts.enable = false; | ||
gnome-remote-desktop.enable = false; | ||
rygel.enable = false; | ||
}; | ||
|
||
system.activationScripts = { | ||
face = { | ||
text = '' | ||
mkdir -p /var/lib/AccountsService/{icons,users} | ||
cp ${pkgs.ghostty}/share/icons/hicolor/1024x1024/apps/com.mitchellh.ghostty.png /var/lib/AccountsService/icons/ghostty | ||
echo -e "[User]\nIcon=/var/lib/AccountsService/icons/ghostty\n" > /var/lib/AccountsService/users/ghostty | ||
chown root:root /var/lib/AccountsService/users/ghostty | ||
chmod 0600 /var/lib/AccountsService/users/ghostty | ||
chown root:root /var/lib/AccountsService/icons/ghostty | ||
chmod 0444 /var/lib/AccountsService/icons/ghostty | ||
''; | ||
}; | ||
}; | ||
|
||
programs.dconf = { | ||
enable = true; | ||
profiles.user.databases = [ | ||
{ | ||
settings = with lib.gvariant; { | ||
"org/gnome/desktop/background" = { | ||
picture-uri = "file://${pkgs.ghostty}/share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png"; | ||
picture-uri-dark = "file://${pkgs.ghostty}/share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png"; | ||
picture-options = "centered"; | ||
primary-color = "#000000000000"; | ||
secondary-color = "#000000000000"; | ||
}; | ||
"org/gnome/desktop/interface" = { | ||
color-scheme = "prefer-dark"; | ||
}; | ||
"org/gnome/desktop/notifications" = { | ||
show-in-lock-screen = false; | ||
}; | ||
"org/gnome/desktop/screensaver" = { | ||
lock-enabled = false; | ||
picture-uri = "file://${pkgs.ghostty}/share/icons/hicolor/512x512/apps/com.mitchellh.ghostty.png"; | ||
picture-options = "centered"; | ||
primary-color = "#000000000000"; | ||
secondary-color = "#000000000000"; | ||
}; | ||
"org/gnome/desktop/session" = { | ||
idle-delay = mkUint32 0; | ||
}; | ||
"org/gnome/shell" = { | ||
disable-user-extensions = false; | ||
enabled-extensions = builtins.map (x: x.extensionUuid) ( | ||
lib.filter (p: p ? extensionUuid) config.environment.systemPackages | ||
); | ||
}; | ||
}; | ||
} | ||
]; | ||
}; | ||
|
||
programs.geary.enable = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.