change some niri config, add setup script for nobara on PC
This commit is contained in:
9 files changed
+58
-30
No files matched your search
@@ -1,3 +1,5 @@
|
|||||||
|
include "./shared.kdl"
|
||||||
|
|
||||||
input {
|
input {
|
||||||
keyboard {
|
keyboard {
|
||||||
repeat-delay 600
|
repeat-delay 600
|
||||||
@@ -63,4 +65,6 @@ window-rule {
|
|||||||
}
|
}
|
||||||
switch-events {
|
switch-events {
|
||||||
lid-close { spawn "systemctl hibernate"; }
|
lid-close { spawn "systemctl hibernate"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include "noctalia.kdl"
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
include "./noctalia.kdl"
|
|
||||||
|
|
||||||
input {
|
input {
|
||||||
keyboard {
|
keyboard {
|
||||||
xkb {
|
xkb {
|
||||||
@@ -55,6 +53,7 @@ binds {
|
|||||||
Mod+Shift+P hotkey-overlay-title="Open power menu" { spawn "noctalia" "msg" "panel-toggle" "session"; }
|
Mod+Shift+P hotkey-overlay-title="Open power menu" { spawn "noctalia" "msg" "panel-toggle" "session"; }
|
||||||
Mod+V hotkey-overlay-title="Show clipboard helper" { spawn "noctalia" "msg" "panel-toggle" "clipboard"; }
|
Mod+V hotkey-overlay-title="Show clipboard helper" { spawn "noctalia" "msg" "panel-toggle" "clipboard"; }
|
||||||
Mod+P hotkey-overlay-title="Show power info" { spawn "noctalia" "msg" "panel-toggle" "control-center" "power"; }
|
Mod+P hotkey-overlay-title="Show power info" { spawn "noctalia" "msg" "panel-toggle" "control-center" "power"; }
|
||||||
|
Mod+W hotkey-overlay-title="Show wallpaper panel" { spawn "noctalia" "msg" "panel-toggle" "wallpaper"; }
|
||||||
Ctrl+Shift+Escape { spawn "noctalia" "msg" "panel-toggle" "control-center" "system"; }
|
Ctrl+Shift+Escape { spawn "noctalia" "msg" "panel-toggle" "control-center" "system"; }
|
||||||
|
|
||||||
Mod+Up { focus-workspace-up; }
|
Mod+Up { focus-workspace-up; }
|
||||||
@@ -125,7 +124,7 @@ animations {
|
|||||||
on
|
on
|
||||||
slowdown 1
|
slowdown 1
|
||||||
workspace-switch {
|
workspace-switch {
|
||||||
spring damping-ratio=0.9 stiffness=750 epsilon=0.0001
|
spring damping-ratio=0.9 stiffness=650 epsilon=0.0001
|
||||||
}
|
}
|
||||||
window-open {
|
window-open {
|
||||||
duration-ms 100
|
duration-ms 100
|
||||||
@@ -136,12 +135,12 @@ animations {
|
|||||||
curve "ease-out-quad"
|
curve "ease-out-quad"
|
||||||
}
|
}
|
||||||
horizontal-view-movement {
|
horizontal-view-movement {
|
||||||
spring damping-ratio=0.85 stiffness=850 epsilon=0.0001
|
spring damping-ratio=0.95 stiffness=750 epsilon=0.0001
|
||||||
}
|
}
|
||||||
window-movement {
|
window-movement {
|
||||||
spring damping-ratio=0.9 stiffness=750 epsilon=0.0001
|
spring damping-ratio=0.9 stiffness=750 epsilon=0.0001
|
||||||
}
|
}
|
||||||
window-resize {
|
window-resize {
|
||||||
spring damping-ratio=0.8 stiffness=650 epsilon=0.0001
|
spring damping-ratio=0.75 stiffness=700 epsilon=0.0001
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"authenticated": false,
|
"authenticated": false,
|
||||||
"settingsSync": false,
|
"settingsSync": false,
|
||||||
"url": "https://cloud.equicord.org/",
|
"url": "https://cloud.equicord.org/",
|
||||||
"settingsSyncVersion": 1788650476307
|
"settingsSyncVersion": 1788703728040
|
||||||
},
|
},
|
||||||
"enableOnlineThemes": true,
|
"enableOnlineThemes": true,
|
||||||
"enabledThemeLinks": [
|
"enabledThemeLinks": [
|
||||||
|
|||||||
@@ -105,4 +105,6 @@ window-rule {
|
|||||||
window-rule {
|
window-rule {
|
||||||
match app-id="^org\\.prismlauncher\\.PrismLauncher$"
|
match app-id="^org\\.prismlauncher\\.PrismLauncher$"
|
||||||
default-window-height { fixed 750; }
|
default-window-height { fixed 750; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include "noctalia.kdl"
|
||||||
@@ -1,4 +1,16 @@
|
|||||||
{ inputs, self, ... }: {
|
{ inputs, self, ... }: let
|
||||||
|
extraPackages = pkgs: with pkgs; [
|
||||||
|
x264
|
||||||
|
gparted
|
||||||
|
vlc
|
||||||
|
obsidian
|
||||||
|
proton-vpn
|
||||||
|
ente-auth
|
||||||
|
signal-desktop
|
||||||
|
github-desktop
|
||||||
|
kdePackages.filelight
|
||||||
|
];
|
||||||
|
in {
|
||||||
flake.nixosModules.graphics = { pkgs, ... }: {
|
flake.nixosModules.graphics = { pkgs, ... }: {
|
||||||
imports = [ self.nixosModules.graphicsOptions ];
|
imports = [ self.nixosModules.graphicsOptions ];
|
||||||
|
|
||||||
@@ -6,7 +18,7 @@
|
|||||||
wayland-utils
|
wayland-utils
|
||||||
mesa-demos
|
mesa-demos
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
];
|
] ++ (if !config.features.nixos.home-manager.enable then (extraPackages pkgs) else []);
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
iosevka-comfy.comfy
|
iosevka-comfy.comfy
|
||||||
@@ -17,14 +29,10 @@
|
|||||||
flake.homeModules.graphics = { config, pkgs, ... }: {
|
flake.homeModules.graphics = { config, pkgs, ... }: {
|
||||||
imports = [ self.homeModules.graphicsOptions ];
|
imports = [ self.homeModules.graphicsOptions ];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = (extraPackages pkgs) ++ (if config.info.isStandalone then (with pkgs; [
|
||||||
bibata-cursors
|
|
||||||
x264
|
|
||||||
gparted
|
|
||||||
vlc
|
|
||||||
iosevka-comfy.comfy
|
iosevka-comfy.comfy
|
||||||
nerd-fonts.jetbrains-mono
|
nerd-fonts.jetbrains-mono
|
||||||
];
|
]) else []);
|
||||||
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
|
|
||||||
flake.nixosModules.global = { config, pkgs, lib, ... }: {
|
flake.nixosModules.global = { config, pkgs, lib, ... }: {
|
||||||
config = lib.mkIf (config.features.shells.zsh.enable || config.features.shells.defaultShell == "zsh") {
|
config = lib.mkIf (config.features.shells.zsh.enable || config.features.shells.defaultShell == "zsh") {
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
home-manager.users.${config.info.userName} = lib.mkIf (config.features.nixos.home-manager.enable) {
|
home-manager.users.${config.info.userName} = lib.mkIf (config.features.nixos.home-manager.enable) {
|
||||||
features.shells.zsh.enable = lib.mkDefault true;
|
features.shells.zsh.enable = lib.mkDefault true;
|
||||||
features.shells.zsh.antidote.enable = lib.mkDefault config.features.shells.zsh.antidote.enable;
|
features.shells.zsh.antidote.enable = lib.mkDefault config.features.shells.zsh.antidote.enable;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
spicetify.enable = true;
|
spicetify.enable = true;
|
||||||
};
|
};
|
||||||
|
thunderbird.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
cli = {
|
cli = {
|
||||||
@@ -48,7 +49,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
github-desktop
|
|
||||||
moonlight-qt
|
moonlight-qt
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -99,15 +99,9 @@
|
|||||||
features = {
|
features = {
|
||||||
applications = {
|
applications = {
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
obsidian
|
|
||||||
thunderbird
|
|
||||||
jetbrains.clion
|
jetbrains.clion
|
||||||
jetbrains.idea
|
jetbrains.idea
|
||||||
proton-vpn
|
|
||||||
ente-auth
|
|
||||||
signal-desktop
|
|
||||||
xarchiver
|
xarchiver
|
||||||
kdePackages.filelight
|
|
||||||
kdePackages.kate
|
kdePackages.kate
|
||||||
loupe
|
loupe
|
||||||
sshfs
|
sshfs
|
||||||
|
|||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
nobara-sync cli
|
||||||
|
|
||||||
|
# niri build dependencies
|
||||||
|
sudo dnf install git cargo gcc libudev-devel libgbm-devel libxkbcommon-devel wayland-devel libinput-devel dbus-devel systemd-devel libseat-devel pipewire-devel pango-devel cairo-gobject-devel clang libdisplay-info-devel -y
|
||||||
|
cargo install -f cargo-generate-rpm
|
||||||
|
|
||||||
|
# build niri (biri fork)
|
||||||
|
cd ~/Documents
|
||||||
|
git clone https://github.com/barrulus/biri
|
||||||
|
cd biri
|
||||||
|
cargo build --release
|
||||||
|
cargo generate-rpm
|
||||||
|
|
||||||
|
RPM_FILE=$(ls ./target/generate-rpm)
|
||||||
|
sudo dnf install ./target/generate-rpm/$RPM_FILE -y
|
||||||
|
|
||||||
|
# other system applications that are NOT handled by nix+home-manager
|
||||||
|
sudo dnf install noctalia steam goverlay protonplus prismlauncher obs-studio mangohud -y
|
||||||
|
|
||||||
|
# activate home-manger config
|
||||||
|
sudo dnf install nix -y
|
||||||
|
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||||
|
nix-channel --update
|
||||||
|
nix-shell '<home-manager>' -A install
|
||||||
|
home-manager switch --flake ~/flake
|
||||||
@@ -67,15 +67,11 @@
|
|||||||
theme = "comfy";
|
theme = "comfy";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
thunderbird = {
|
thunderbird.enable = true;
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
nix-init
|
nix-init
|
||||||
github-desktop
|
|
||||||
signal-desktop
|
|
||||||
];
|
];
|
||||||
|
|
||||||
shellScripts = let
|
shellScripts = let
|
||||||
|
|||||||
Reference in new issue
Block a user