parent
b2671bb298
commit
28b5e266e1
3 changed files with 41 additions and 1 deletions
|
@ -1211,8 +1211,24 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
niri
|
niri
|
||||||
fuzzel
|
fuzzel
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.gnome-keyring.enable = true;
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = with pkgs; [xdg-desktop-portal-gtk xdg-desktop-portal-gnome];
|
||||||
|
config = {
|
||||||
|
common = {
|
||||||
|
default = ["gtk"];
|
||||||
|
};
|
||||||
|
niri = {
|
||||||
|
default = ["gtk"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.file."${config.xdg.configHome}/niri" = {
|
home.file."${config.xdg.configHome}/niri" = {
|
||||||
source = config.lib.file.mkOutOfStoreSymlink /etc/nix/flake/modules/home-manager/niri;
|
source = config.lib.file.mkOutOfStoreSymlink /etc/nix/flake/modules/home-manager/niri;
|
||||||
};
|
};
|
||||||
|
|
|
@ -111,7 +111,7 @@ layout {
|
||||||
// - "always", the focused column will always be centered.
|
// - "always", the focused column will always be centered.
|
||||||
// - "on-overflow", focusing a column will center it if it doesn't fit
|
// - "on-overflow", focusing a column will center it if it doesn't fit
|
||||||
// together with the previously focused column.
|
// together with the previously focused column.
|
||||||
center-focused-column "always"
|
center-focused-column "never"
|
||||||
|
|
||||||
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||||
preset-column-widths {
|
preset-column-widths {
|
||||||
|
|
|
@ -18,6 +18,30 @@
|
||||||
# TODO: include the home-manager modules for daniel?
|
# TODO: include the home-manager modules for daniel?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
niri = {pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [niri];
|
||||||
|
|
||||||
|
systemd.user.services.polkit = {
|
||||||
|
description = "PolicyKit Authentication Agent";
|
||||||
|
wantedBy = ["niri.service"];
|
||||||
|
after = ["graphical-session.target"];
|
||||||
|
partOf = ["graphical-session.target"];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 1;
|
||||||
|
TimeoutStopSec = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
security.pam.services.swaylock = {};
|
||||||
|
programs.dconf.enable = pkgs.lib.mkDefault true;
|
||||||
|
fonts.enableDefaultPackages = pkgs.lib.mkDefault true;
|
||||||
|
security.polkit.enable = true;
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
hyprland = {pkgs, ...}: {
|
hyprland = {pkgs, ...}: {
|
||||||
imports = with nixosModules; [
|
imports = with nixosModules; [
|
||||||
ewwbar
|
ewwbar
|
||||||
|
|
Loading…
Reference in a new issue