Clean up and move Vanguard back to using hyprland

This commit is contained in:
Evie Litherland-Smith 2023-07-10 16:40:46 +01:00
parent 733d86c759
commit c4897c3532
12 changed files with 19 additions and 178 deletions

View file

@ -1,12 +0,0 @@
{...}: {
imports = [./xfce-base.nix];
services = {
xserver = {
desktopManager.xfce = {
enableXfwm = false;
noDesktop = true;
};
windowManager.awesome.enable = true;
};
};
}

View file

@ -1,12 +0,0 @@
{...}: {
imports = [./xfce-base.nix];
services = {
xserver = {
desktopManager.xfce = {
enableXfwm = false;
noDesktop = true;
};
windowManager.bspwm.enable = true;
};
};
}

View file

@ -1,11 +0,0 @@
{pkgs, ...}: {
imports = [./sddm.nix];
services.xserver.desktopManager.plasma5.enable = true;
programs.kdeconnect.enable = true;
environment.systemPackages = with pkgs; [
libsForQt5.lightly
libsForQt5.kwindowsystem
libsForQt5.ktorrent
libsForQt5.krdc
];
}

View file

@ -1,15 +0,0 @@
{...}: {
imports = [./xfce-base.nix];
services = {
xserver = {
desktopManager.xfce = {
enableXfwm = false;
noDesktop = true;
};
windowManager.qtile = {
enable = true;
extraPackages = ps: with ps; [qtile-extras];
};
};
};
}

View file

@ -1,11 +0,0 @@
{pkgs, ...}: let
sddm-catppuccin-macchiato = pkgs.callPackage ./pkgs/sddm-catppuccin-macchiato {};
in {
imports = [./xserver.nix];
environment.systemPackages = [sddm-catppuccin-macchiato];
services.xserver.displayManager.sddm = {
enable = true;
theme = "catppuccin-macchiato";
settings = {General = {InputMethod = "";};};
};
}

View file

@ -1,28 +0,0 @@
{pkgs, ...}: {
imports = [./sddm.nix];
environment.systemPackages = with pkgs; [
gsettings-desktop-schemas
pavucontrol
pamixer
pulseaudio
flameshot
];
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
services = {
xserver = {
desktopManager = {
xterm.enable = false;
xfce.enable = true;
};
};
blueman.enable = true;
gvfs.enable = true;
tumbler.enable = true;
};
}

View file

@ -1,7 +0,0 @@
{...}: {
services.xserver = {
enable = true;
layout = "gb";
xkbVariant = "";
};
}

View file

@ -93,24 +93,23 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
config.allowUnfree = true; config.allowUnfree = true;
overlays = [neovim-nightly-overlay.overlay]; overlays = [
waybar-experimental-overlay
neovim-nightly-overlay.overlay
];
}; };
modules = [ modules = [
home-manager-config home-manager-config
services
hyprland.nixosModules.default
./hosts/Vanguard ./hosts/Vanguard
./desktop/bspwm.nix
./desktop/awesome.nix
./desktop/qtile.nix
./services/sshd ./services/sshd
./services/syncthing/Vanguard.nix ./services/syncthing/Vanguard.nix
({pkgs, ...}: { ({pkgs, ...}: {
services.xserver.displayManager = {
autoLogin.user = "xenia";
defaultSession = "xfce+bspwm";
};
hardware.steam-hardware.enable = true; hardware.steam-hardware.enable = true;
programs = { programs = {
xwayland.enable = true; xwayland.enable = true;
hyprland.enable = true;
gamescope = { gamescope = {
enable = true; enable = true;
capSysNice = true; capSysNice = true;
@ -123,9 +122,10 @@
}; };
home-manager.users.xenia = { home-manager.users.xenia = {
imports = [ imports = [
hyprland.homeManagerModules.default
./home/personal.nix ./home/personal.nix
./home/desktop/bspwm.nix ./home/desktop/hyprland.nix
./home/desktop/awesome ./home/desktop/waybar/main.nix
./home/gui ./home/gui
]; ];
home = { home = {
@ -134,8 +134,12 @@
stateVersion = "22.11"; stateVersion = "22.11";
}; };
programs.neovim.package = pkgs.neovim-nightly; programs.neovim.package = pkgs.neovim-nightly;
xsession.windowManager.bspwm.extraConfig = '' xdg.configFile."hypr/hyprpaper.conf".text = ''
${pkgs.feh}/bin/feh --no-fehbg --bg-fill ${wallpapers.outputs.default} preload = ${wallpapers.outputs.default}
wallpaper = ,${wallpapers.outputs.default}
'';
xdg.configFile."hypr/display.conf".text = ''
monitor=,highrr,auto,1
''; '';
}; };
}) })
@ -184,9 +188,9 @@
wallpaper = ,${wallpapers.outputs.default} wallpaper = ,${wallpapers.outputs.default}
''; '';
xdg.configFile."hypr/display.conf".text = '' xdg.configFile."hypr/display.conf".text = ''
monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200,0x185,1 monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200@60,0x185,1
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,1920x1080,1920x0,1,transform,1 monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,1920x1080@60,1920x0,1,transform,1
monitor=eDP-1,1920x1080,640x1385,1.5 monitor=eDP-1,1920x1080@60,640x1385,1.5
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
''; '';
}; };

View file

@ -1,21 +0,0 @@
{pkgs, ...}: {
services.blueman.enable = true;
environment.systemPackages = with pkgs; [
gsettings-desktop-schemas
pavucontrol
pamixer
pulseaudio
grim
slurp
];
security.pam.services.swaylock = {};
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
services.gvfs.enable = true; # Mount, trash, and other functionalities
services.tumbler.enable = true; # Thumbnail support for images
}

View file

@ -1,17 +0,0 @@
{...}: {
imports = [./default.nix];
nixpkgs.overlays = [
(final: prev: {
waybar = prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
});
})
];
programs.hyprland = {
enable = true;
xwayland = {
enable = true;
hidpi = true;
};
};
}

View file

@ -1,29 +0,0 @@
{pkgs, ...}: let
# bash script to let dbus know about important env variables and
# propogate them to relevent services run at the end of sway config
# see
# https://github.com/emersion/xdg-desktop-portal-wlr/wiki/"It-doesn't-work"-Troubleshooting-Checklist
dbus-sway-environment = pkgs.writeTextFile {
name = "dbus-sway-environment";
destination = "/bin/dbus-sway-environment";
executable = true;
text = ''
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
'';
};
in {
imports = [./default.nix];
environment.systemPackages = [dbus-sway-environment];
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
};
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
}