feat: move to ly
move to ly DM in order to fix the annoying xdg-desktop-portal
This commit is contained in:
@@ -43,10 +43,7 @@
|
|||||||
PATH = "/home/${username}/bin:$PATH";
|
PATH = "/home/${username}/bin:$PATH";
|
||||||
};
|
};
|
||||||
profileExtra = ''
|
profileExtra = ''
|
||||||
if [ `tty` = "/dev/tty1" -a $XDG_RUNTIME_DIR ]; then
|
if [ `tty` = "/dev/tty6" ]; then
|
||||||
echo 'Starting Niri...'
|
|
||||||
exec uwsm start niri-uwsm.desktop
|
|
||||||
elif [ `tty` = "/dev/tty6" ]; then
|
|
||||||
clear
|
clear
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
@@ -94,10 +91,7 @@
|
|||||||
autologin = {
|
autologin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = username;
|
user = username;
|
||||||
ttys = [
|
ttys = [ 6 ];
|
||||||
1
|
|
||||||
6
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gpg.enable = true;
|
gpg.enable = true;
|
||||||
@@ -168,7 +162,10 @@
|
|||||||
".android"
|
".android"
|
||||||
"Android"
|
"Android"
|
||||||
|
|
||||||
".ssh"
|
{
|
||||||
|
directory = ".ssh";
|
||||||
|
mode = "0700";
|
||||||
|
}
|
||||||
|
|
||||||
"bin"
|
"bin"
|
||||||
"workspace"
|
"workspace"
|
||||||
|
|||||||
17
flake.lock
generated
17
flake.lock
generated
@@ -594,6 +594,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"infuse": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1738726976,
|
||||||
|
"narHash": "sha256-N+u3vnK3zyXLUuDj/vr62r9tM7uarhKVCaLHWxjo/YY=",
|
||||||
|
"ref": "refs/heads/trunk",
|
||||||
|
"rev": "c8fb7397039215e1444c835e36a0da7dc3c743f8",
|
||||||
|
"revCount": 48,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://codeberg.org/amjoseph/infuse.nix"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://codeberg.org/amjoseph/infuse.nix"
|
||||||
|
}
|
||||||
|
},
|
||||||
"libgit2": {
|
"libgit2": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -996,6 +1012,7 @@
|
|||||||
"go-musicfox": "go-musicfox",
|
"go-musicfox": "go-musicfox",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
|
"infuse": "infuse",
|
||||||
"niri": "niri",
|
"niri": "niri",
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|||||||
@@ -145,7 +145,6 @@
|
|||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
inputs.impermanence.nixosModules.home-manager.impermanence
|
inputs.impermanence.nixosModules.home-manager.impermanence
|
||||||
inputs.stylix.homeManagerModules.stylix
|
inputs.stylix.homeManagerModules.stylix
|
||||||
inputs.niri.homeModules.niri
|
|
||||||
# workaround for annoying stylix
|
# workaround for annoying stylix
|
||||||
(
|
(
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
@@ -178,6 +177,7 @@
|
|||||||
./config/hosts/${hostname}
|
./config/hosts/${hostname}
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.impermanence.nixosModules.impermanence
|
inputs.impermanence.nixosModules.impermanence
|
||||||
|
inputs.niri.nixosModules.niri
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
home
|
home
|
||||||
pkgsConf
|
pkgsConf
|
||||||
|
|||||||
@@ -85,6 +85,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
spawn-at-startup = map (c: { command = c; }) [
|
spawn-at-startup = map (c: { command = c; }) [
|
||||||
|
[ "waybar" ]
|
||||||
[ "${lib.getExe pkgs.xwayland-satellite-unstable}" ]
|
[ "${lib.getExe pkgs.xwayland-satellite-unstable}" ]
|
||||||
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
|
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
|
||||||
[
|
[
|
||||||
@@ -92,11 +93,6 @@
|
|||||||
"-i"
|
"-i"
|
||||||
(toString ./wallpaper.png)
|
(toString ./wallpaper.png)
|
||||||
]
|
]
|
||||||
[
|
|
||||||
"${lib.getExe pkgs.wl-clip-persist}"
|
|
||||||
"--clipboard"
|
|
||||||
"regular"
|
|
||||||
]
|
|
||||||
[
|
[
|
||||||
"wl-paste"
|
"wl-paste"
|
||||||
"--type"
|
"--type"
|
||||||
|
|||||||
@@ -40,27 +40,21 @@ in
|
|||||||
xdg-desktop-portal-gnome
|
xdg-desktop-portal-gnome
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
programs.uwsm = {
|
services.displayManager.ly = {
|
||||||
enable = true;
|
enable = true;
|
||||||
waylandCompositors = {
|
settings = {
|
||||||
niri = {
|
animation = "matrix";
|
||||||
prettyName = "niri";
|
tty = 12;
|
||||||
comment = "Niri compositor managed by UWSM";
|
|
||||||
binPath = pkgs.writeShellScript "niri-session" ''
|
|
||||||
${lib.getExe pkg} --session
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
programs.niri = {
|
||||||
|
enable = true;
|
||||||
|
package = pkg;
|
||||||
|
};
|
||||||
my.home = {
|
my.home = {
|
||||||
programs.niri = {
|
|
||||||
enable = true;
|
|
||||||
package = pkg;
|
|
||||||
};
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wlr-randr
|
wlr-randr
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wl-clip-persist
|
|
||||||
cliphist
|
cliphist
|
||||||
swaynotificationcenter
|
swaynotificationcenter
|
||||||
nemo-with-extensions
|
nemo-with-extensions
|
||||||
@@ -76,7 +70,7 @@ in
|
|||||||
};
|
};
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = false;
|
||||||
};
|
};
|
||||||
xdg.configFile."waybar/config.jsonc".text = builtins.toJSON (import ./waybar/config.nix args);
|
xdg.configFile."waybar/config.jsonc".text = builtins.toJSON (import ./waybar/config.nix args);
|
||||||
xdg.configFile."waybar/style.css" = {
|
xdg.configFile."waybar/style.css" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user