Fixed sway, waybar, xdg and pass
This commit is contained in:
parent
25fa736dff
commit
f138a25ad6
10 changed files with 65 additions and 65 deletions
|
@ -1,12 +1,12 @@
|
||||||
{ config, lib, pkgs, profiles, pbpKernelLatest, ... }:
|
{ config, lib, pkgs, profiles, pbpKernelLatest, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = with profiles; [ mount-nas sshd dbus ];
|
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg ];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = [ "usbhid" ];
|
initrd.availableKernelModules = [ "usbhid" ];
|
||||||
kernelPackages = pbpKernelLatest;
|
kernelPackages = pbpKernelLatest;
|
||||||
kernelModules = [ ];
|
kernelModules = [];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
v4l2loopback
|
v4l2loopback
|
||||||
];
|
];
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[{ device = "/dev/disk/by-uuid/e236d328-496e-4cf8-ba54-857789ca258f"; }];
|
[ { device = "/dev/disk/by-uuid/e236d328-496e-4cf8-ba54-857789ca258f"; } ];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ config, lib, pkgs, profiles, ... }:
|
{ config, lib, pkgs, profiles, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = with profiles; [ mount-nas sshd dbus avahi printing ];
|
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg ];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
initrd.kernelModules = [ ];
|
initrd.kernelModules = [];
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
v4l2loopback
|
v4l2loopback
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[{ device = "/dev/disk/by-label/swap"; }];
|
[ { device = "/dev/disk/by-label/swap"; } ];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,10 +46,6 @@ in
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
location.provider = "geoclue2";
|
location.provider = "geoclue2";
|
||||||
|
|
||||||
xdg.portal.enable = true; # is this needed?
|
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
|
|
||||||
xdg.portal.gtkUsePortal = true;
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
autoOptimiseStore = true;
|
autoOptimiseStore = true;
|
||||||
gc.automatic = true;
|
gc.automatic = true;
|
||||||
|
|
11
profiles/xdg/default.nix
Normal file
11
profiles/xdg/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
xdg.portal.enable = true;
|
||||||
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
|
||||||
|
xdg.portal.gtkUsePortal = true;
|
||||||
|
services.pipewire.enable = true;
|
||||||
|
environment.sessionVariables = {
|
||||||
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
XDG_CURRENT_DESKTOP = "sway"; # https://github.com/emersion/xdg-desktop-portal-wlr/issues/20
|
||||||
|
XDG_SESSION_TYPE = "wayland"; # https://github.com/emersion/xdg-desktop-portal-wlr/pull/11
|
||||||
|
};
|
||||||
|
}
|
4
secrets/.gitattributes
vendored
4
secrets/.gitattributes
vendored
|
@ -1,4 +0,0 @@
|
||||||
* filter=git-crypt diff=git-crypt
|
|
||||||
.gitattributes !filter !diff
|
|
||||||
secrets.nix !filter !diff
|
|
||||||
README.md !filter !diff
|
|
|
@ -1,9 +0,0 @@
|
||||||
let
|
|
||||||
# set ssh public keys here for your system and user
|
|
||||||
system = "";
|
|
||||||
user = "";
|
|
||||||
allKeys = [ system user ];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"secret.age".publicKeys = allKeys;
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
programs.foot = {
|
programs.foot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
server.enable = true;
|
server.enable = false; # server is executed by sway without systemd integration
|
||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
term = "xterm-256color";
|
term = "xterm-256color";
|
||||||
|
@ -14,5 +14,6 @@
|
||||||
hide-when-typing = "yes";
|
hide-when-typing = "yes";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{
|
{
|
||||||
services.pass-secret-service.enable = true;
|
|
||||||
services.password-store-sync.enable = true;
|
services.password-store-sync.enable = true;
|
||||||
programs.password-store.enable = true;
|
programs.password-store = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PASSWORD_STORE_DIR = "/home/ccr/.password-store";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,10 +23,12 @@
|
||||||
command = "${pkgs.waybar}/bin/waybar";
|
command = "${pkgs.waybar}/bin/waybar";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
#startup = [{
|
startup = [
|
||||||
#command = "systemctl --user restart redshift";
|
{
|
||||||
# always = true;
|
command = "foot --server";
|
||||||
#}];
|
always = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
window.commands = [
|
window.commands = [
|
||||||
{ criteria = { app_id = "mpv"; }; command = "sticky enable"; }
|
{ criteria = { app_id = "mpv"; }; command = "sticky enable"; }
|
||||||
{ criteria = { app_id = "mpv"; }; command = "floating enable"; }
|
{ criteria = { app_id = "mpv"; }; command = "floating enable"; }
|
||||||
|
@ -41,8 +43,6 @@
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
bindsym ${modifier}+p move workspace to output right
|
bindsym ${modifier}+p move workspace to output right
|
||||||
#exec systemctl --user import-environment
|
|
||||||
#exec systemctl --user start graphical-session.target
|
|
||||||
'';
|
'';
|
||||||
xwayland = true;
|
xwayland = true;
|
||||||
systemdIntegration = true;
|
systemdIntegration = true;
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
"sway/mode"
|
"sway/mode"
|
||||||
"sway/workspaces"
|
"sway/workspaces"
|
||||||
];
|
];
|
||||||
modules-center = [ ];
|
modules-center = [];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
"tray"
|
"tray"
|
||||||
|
|
|
@ -54,5 +54,6 @@
|
||||||
NIX_BUILD_SHELL = "${pkgs.zsh-nix-shell}/scripts/buildShellShim.zsh";
|
NIX_BUILD_SHELL = "${pkgs.zsh-nix-shell}/scripts/buildShellShim.zsh";
|
||||||
PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT";
|
PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT";
|
||||||
};
|
};
|
||||||
|
loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue