Revert "feat: move to ly"

This reverts commit ece19eadb8.
This commit is contained in:
2025-05-04 10:14:54 +08:00
parent ece19eadb8
commit ba30d87ef4
5 changed files with 30 additions and 34 deletions

View File

@@ -43,7 +43,10 @@
PATH = "/home/${username}/bin:$PATH"; PATH = "/home/${username}/bin:$PATH";
}; };
profileExtra = '' profileExtra = ''
if [ `tty` = "/dev/tty6" ]; then if [ `tty` = "/dev/tty1" -a $XDG_RUNTIME_DIR ]; then
echo 'Starting Niri...'
exec uwsm start niri-uwsm.desktop
elif [ `tty` = "/dev/tty6" ]; then
clear clear
fi fi
''; '';
@@ -91,7 +94,10 @@
autologin = { autologin = {
enable = true; enable = true;
user = username; user = username;
ttys = [ 6 ]; ttys = [
1
6
];
}; };
gpg.enable = true; gpg.enable = true;
@@ -162,10 +168,7 @@
".android" ".android"
"Android" "Android"
{ ".ssh"
directory = ".ssh";
mode = "0700";
}
"bin" "bin"
"workspace" "workspace"

17
flake.lock generated
View File

@@ -594,22 +594,6 @@
"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": {
@@ -1012,7 +996,6 @@
"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": [

View File

@@ -145,6 +145,7 @@
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, ... }:
@@ -177,7 +178,6 @@
./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

View File

@@ -85,7 +85,6 @@
}; };
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"}" ]
[ [
@@ -93,6 +92,11 @@
"-i" "-i"
(toString ./wallpaper.png) (toString ./wallpaper.png)
] ]
[
"${lib.getExe pkgs.wl-clip-persist}"
"--clipboard"
"regular"
]
[ [
"wl-paste" "wl-paste"
"--type" "--type"

View File

@@ -40,21 +40,27 @@ in
xdg-desktop-portal-gnome xdg-desktop-portal-gnome
]; ];
}; };
services.displayManager.ly = { programs.uwsm = {
enable = true; enable = true;
settings = { waylandCompositors = {
animation = "matrix"; niri = {
tty = 12; prettyName = "niri";
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
@@ -70,7 +76,7 @@ in
}; };
programs.waybar = { programs.waybar = {
enable = true; enable = true;
systemd.enable = false; systemd.enable = true;
}; };
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" = {