Skip to content

Commit

Permalink
feat: switch to gnome!
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Jun 6, 2024
1 parent 07e2e8c commit 018db27
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 15 deletions.
1 change: 1 addition & 0 deletions configs/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ in {

../programs/fish.nix
../programs/git.nix
../programs/rust.nix
../programs/starship
];

Expand Down
19 changes: 11 additions & 8 deletions configs/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -146,8 +155,6 @@
};
};

displayManager.defaultSession = "hyprland";

printing.enable = true;

pipewire = {
Expand All @@ -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;
};
Expand Down
7 changes: 0 additions & 7 deletions programs/default.nix

This file was deleted.

28 changes: 28 additions & 0 deletions programs/gnome.nix
Original file line number Diff line number Diff line change
@@ -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";
};
};
}
4 changes: 4 additions & 0 deletions programs/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 018db27

Please sign in to comment.