feat: switch to gnome!

This commit is contained in:
uku 2024-06-06 11:51:03 +02:00
parent 07e2e8ca94
commit 018db2739d
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
5 changed files with 44 additions and 15 deletions

View file

@ -14,6 +14,7 @@ in {
../programs/fish.nix
../programs/git.nix
../programs/rust.nix
../programs/starship
];

View file

@ -5,7 +5,16 @@
catppuccin,
...
}: {
imports = [../programs];
imports = [
../programs/alacritty.nix
../programs/gnome.nix
../programs/vscode.nix
# the world if hyprland
# ../programs/hyprland.nix
# ../programs/fuzzel.nix
# ../programs/waybar
];
boot = {
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
@ -146,8 +155,6 @@
};
};
displayManager.defaultSession = "hyprland";
printing.enable = true;
pipewire = {
@ -170,11 +177,7 @@
virtualisation.libvirtd.enable = true;
xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
};
portal.enable = true;
mime.enable = true;
icons.enable = true;
};

View file

@ -1,7 +0,0 @@
{lib, ...}: {
imports = lib.pipe ./. [
builtins.readDir
(lib.filterAttrs (n: _: n != "default.nix"))
(lib.mapAttrsToList (n: _: ./${n}))
];
}

28
programs/gnome.nix Normal file
View file

@ -0,0 +1,28 @@
{pkgs, ...}: {
services = {
xserver.desktopManager.gnome.enable = true;
displayManager.defaultSession = "gnome";
};
environment = {
gnome.excludePackages =
(with pkgs; [
gnome-tour
])
++ (with pkgs.gnome; [
cheese # webcam tool
gnome-terminal
epiphany # web browser
geary # email reader
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
sessionVariables = {
NIXOS_OZONE_WL = "1";
};
};
}

View file

@ -5,6 +5,10 @@
}: {
programs.hyprland.enable = true;
services.displayManager.defaultSession = "hyprland";
xdg.portal.extraPortals = with pkgs; [xdg-desktop-portal-gtk];
hm = {
home.packages = with pkgs; [
hyprpaper