This commit is contained in:
2025-03-03 18:50:51 +02:00
parent 15f3bf07e7
commit 25549279f2
11 changed files with 159 additions and 20 deletions

View File

@ -221,7 +221,6 @@ in {
"$mod, Return, exec, $terminal"
"$mod, Space, exec, $dlauncher"
"$modShift, Space, exec, $launcher"
"$mod, Escape, exec, hyprctl switchxkblayout all next"
"$modCtrl, Q, killactive"
"$modCtrl, M, fullscreen"
"$modCtrl, G, togglefloating"
@ -345,6 +344,7 @@ in {
# "$modShift, period, resizeactive, 0 10"
# ];
bindl = [
"$mod, Escape, exec, hyprctl switchxkblayout all next"
", switch:on:Lid Switch, exec, hyprctl keyword monitor 'eDP-1, disable'"
", switch:off:Lid Switch, exec, hyprctl keyword monitor 'eDP-1, preferred, 1920x0, 1.2'"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"

View File

@ -33,7 +33,7 @@ in {
enable = true;
shellAliases = {
cd = "z";
cat = "bat";
# cat = "bat";
la = "ls -a";
l = "ls -la";
};

View File

@ -0,0 +1,37 @@
{
config,
inputs,
pkgs,
lib,
...
}: let
cfg = config.desktop.cosmic;
in {
imports = with inputs; [
./common/pipewire.nix
nixos-cosmic.nixosModules.default
];
options = {
desktop.cosmic.enable =
lib.mkEnableOption "enable cosmic desktop";
};
config = lib.mkIf cfg.enable {
nix.settings = {
substituters = ["https://cosmic.cachix.org/"];
trusted-public-keys = ["cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="];
};
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-cosmic
xdg-desktop-portal-gtk
];
config.common.default = [
"cosmic"
"gtk"
];
};
};
}

View File

@ -1,6 +1,7 @@
{
imports = [
./niri.nix
./cosmic.nix
./plasma.nix
./hyprland.nix
];