Compare commits
41 Commits
3d349550c7
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a104c4b9e | |||
| de94238cc8 | |||
| 28ab881f91 | |||
| defe386350 | |||
| 60bcad8ebf | |||
| 628fc77d39 | |||
| d6c191d4c3 | |||
|
|
01bce9f753 | ||
|
|
99de73bdc8 | ||
| 732716fa96 | |||
| e29dcd7267 | |||
| 87a68cdeb9 | |||
| 67e1cbc9b5 | |||
| 1d7f0b50d8 | |||
|
|
11f43e0857 | ||
| 4a1d6cfe9f | |||
|
|
ffcdca3167 | ||
|
|
9e7205b990 | ||
| 8ceed83c52 | |||
| 814553803f | |||
| ac33b25b3c | |||
| e1a22878c7 | |||
|
|
7ac6878a92 | ||
| 588171dc0a | |||
|
|
0ad0a3f632 | ||
|
|
7cefea54ac | ||
|
|
ca29b54286 | ||
| b056ce3f79 | |||
| 279389ae6f | |||
| 763426c05b | |||
| 15a78965ab | |||
|
|
a769c11c66 | ||
|
|
bbb5ab0b70 | ||
| 981b0596fd | |||
| 00134018e7 | |||
| a20a9f9177 | |||
|
|
805aaa789c | ||
| 08d9999722 | |||
| d9d0b3fb70 | |||
| 3b31822d39 | |||
| b2504fde35 |
80
CLAUDE.md
Normal file
80
CLAUDE.md
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
# CLAUDE.md
|
||||||
|
|
||||||
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||||
|
|
||||||
|
## Build Commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Rebuild and switch to main system (default specialization)
|
||||||
|
ns # alias for: nh os switch --specialisation 00-main-system
|
||||||
|
|
||||||
|
# Update flake inputs and commit lock file
|
||||||
|
nu # alias for: (cd ~/nixos-dots && nix flake update --commit-lock-file)
|
||||||
|
|
||||||
|
# Edit configuration in Emacs
|
||||||
|
ne # alias for: emacsclient -c ~/nixos-dots/configuration.nix
|
||||||
|
|
||||||
|
# Direct rebuild commands (if not using nh aliases)
|
||||||
|
sudo nixos-rebuild switch --flake .#mrfluffyPC
|
||||||
|
sudo nixos-rebuild switch --flake .#mrfluffyLaptop
|
||||||
|
```
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
### Multi-Host / Multi-User System
|
||||||
|
|
||||||
|
This is a NixOS flake configuration targeting two machines (`mrfluffyPC`, `mrfluffyLaptop`) with three users (`mrfluffy`, `work`, `game`). The `systemName` variable (`"pc"` or `"laptop"`) is passed through `specialArgs` to enable hardware-conditional configuration.
|
||||||
|
|
||||||
|
### Specializations
|
||||||
|
|
||||||
|
Two boot specializations exist in `configuration.nix`:
|
||||||
|
- **`00-main-system`**: Default desktop environment with Hyprland, full dev tooling
|
||||||
|
- **`01-steam`**: Gaming mode with Gamescope, Steam Big Picture, auto-login to `game` user
|
||||||
|
|
||||||
|
### Directory Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
flake.nix # Flake inputs and nixosConfigurations
|
||||||
|
configuration.nix # Entry point: users, home-manager, specializations
|
||||||
|
hardware-configuration.nix
|
||||||
|
system/ # NixOS modules (boot, hardware, services, packages)
|
||||||
|
├── boot.nix # Bootloader, kernel config (laptop/pc conditional)
|
||||||
|
├── hardware.nix # GPU drivers (Intel for laptop, AMD for PC)
|
||||||
|
├── nixOSPkgs.nix # System packages (~2300 lines)
|
||||||
|
├── services.nix # System services (greetd, pipewire, etc.)
|
||||||
|
└── specialisation/ # Boot mode configs
|
||||||
|
home/ # Home Manager user configs
|
||||||
|
├── mrfluffy.nix # Main user (imports dots/, stylix, services)
|
||||||
|
├── work.nix # Work user
|
||||||
|
├── game.nix # Gaming user
|
||||||
|
├── homePkgs.nix # User packages
|
||||||
|
└── stylix.nix # Unified theming (base16, fonts, cursors)
|
||||||
|
dots/ # Application dotfiles as Nix modules
|
||||||
|
├── hyprland.nix # Primary window manager
|
||||||
|
├── waybar.nix # Status bar
|
||||||
|
├── foot.nix # Terminal
|
||||||
|
├── zsh.nix # Shell config with aliases
|
||||||
|
└── doom/ # Doom Emacs config (raw files)
|
||||||
|
assets/Wallpapers/ # Wallpaper images
|
||||||
|
```
|
||||||
|
|
||||||
|
### Window Manager Selection
|
||||||
|
|
||||||
|
Set in `flake.nix` via `window_manager` variable (options: `"hyprland"`, `"niri"`, `"all"`). Currently set to `"hyprland"`. This variable is passed to modules for conditional WM configuration.
|
||||||
|
|
||||||
|
### Theming
|
||||||
|
|
||||||
|
Stylix + nix-colors provide unified theming across all applications:
|
||||||
|
- Color scheme: `hardcore` (base00: `#141414`)
|
||||||
|
- Configured in `home/stylix.nix`
|
||||||
|
|
||||||
|
### Conditional Hardware Config
|
||||||
|
|
||||||
|
Use the `systemName` variable (`"laptop"` or `"pc"`) for hardware-specific code:
|
||||||
|
```nix
|
||||||
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
in
|
||||||
|
# ... use lib.mkIf for conditional values
|
||||||
|
```
|
||||||
BIN
assets/Wallpapers/142.jpg
Normal file
BIN
assets/Wallpapers/142.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
@@ -3,14 +3,38 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
window_manager,
|
window_manager,
|
||||||
systemName,
|
systemName,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
# Common groups for main users (mrfluffy, work)
|
||||||
|
defaultUserGroups = [
|
||||||
|
"wheel"
|
||||||
|
"networkmanager"
|
||||||
|
"video"
|
||||||
|
"render"
|
||||||
|
"docker"
|
||||||
|
"libvirt"
|
||||||
|
"input"
|
||||||
|
"seat"
|
||||||
|
"dialout"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Groups for game user (no wheel for security - has empty password)
|
||||||
|
gameUserGroups = [
|
||||||
|
"video"
|
||||||
|
"render"
|
||||||
|
"input"
|
||||||
|
"seat"
|
||||||
|
"networkmanager"
|
||||||
|
"dialout"
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@@ -24,9 +48,7 @@
|
|||||||
#inputs.niri.nixosModules.niri
|
#inputs.niri.nixosModules.niri
|
||||||
];
|
];
|
||||||
|
|
||||||
##############################################################################
|
# ─── Nix settings ───────────────────────────────────────────────────────────
|
||||||
# Nix settings
|
|
||||||
##############################################################################
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
@@ -34,11 +56,21 @@
|
|||||||
];
|
];
|
||||||
build-dir = "/nix/var/nix/builds";
|
build-dir = "/nix/var/nix/builds";
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
|
substituters = [
|
||||||
|
"https://hyprland.cachix.org"
|
||||||
|
"https://vicinae.cachix.org"
|
||||||
|
];
|
||||||
|
trusted-substituters = [
|
||||||
|
"https://hyprland.cachix.org"
|
||||||
|
"https://vicinae.cachix.org"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||||
|
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
##############################################################################
|
# ─── Users ──────────────────────────────────────────────────────────────────
|
||||||
# Users
|
|
||||||
##############################################################################
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
users = {
|
users = {
|
||||||
users = {
|
users = {
|
||||||
@@ -56,17 +88,7 @@
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
extraGroups = [
|
extraGroups = defaultUserGroups;
|
||||||
"wheel"
|
|
||||||
"networkmanager"
|
|
||||||
"video"
|
|
||||||
"render"
|
|
||||||
"docker"
|
|
||||||
"libvirt"
|
|
||||||
"input"
|
|
||||||
"seat"
|
|
||||||
"dialout"
|
|
||||||
];
|
|
||||||
packages = with pkgs; [ ];
|
packages = with pkgs; [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -74,34 +96,17 @@
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
extraGroups = [
|
extraGroups = defaultUserGroups;
|
||||||
"wheel"
|
|
||||||
"networkmanager"
|
|
||||||
"video"
|
|
||||||
"render"
|
|
||||||
"docker"
|
|
||||||
"libvirt"
|
|
||||||
"input"
|
|
||||||
"seat"
|
|
||||||
"dialout"
|
|
||||||
];
|
|
||||||
packages = with pkgs; [ ];
|
packages = with pkgs; [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
game = {
|
game = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Dedicated gaming user (auto-login in Steam specialisation)";
|
description = "Dedicated gaming user (auto-login in Steam specialisation)";
|
||||||
shell = pkgs.bash;
|
shell = pkgs.bash;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
password = ""; # no password
|
hashedPassword = ""; # no password - removed wheel group for security
|
||||||
extraGroups = [
|
extraGroups = gameUserGroups;
|
||||||
"wheel"
|
|
||||||
"video"
|
|
||||||
"render"
|
|
||||||
"input"
|
|
||||||
"seat"
|
|
||||||
"networkmanager"
|
|
||||||
"dialout"
|
|
||||||
];
|
|
||||||
home = "/home/game";
|
home = "/home/game";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -111,9 +116,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
##############################################################################
|
# ─── Home-Manager ───────────────────────────────────────────────────────────
|
||||||
# Home-Manager
|
|
||||||
##############################################################################
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs window_manager systemName; };
|
extraSpecialArgs = { inherit inputs window_manager systemName; };
|
||||||
users = {
|
users = {
|
||||||
@@ -123,12 +126,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
##############################################################################
|
# ─── Environment ────────────────────────────────────────────────────────────
|
||||||
# Environment
|
|
||||||
##############################################################################
|
|
||||||
environment = {
|
environment = {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
ZDOTDIR = "$HOME/.config/zsh";
|
ZDOTDIR = "$HOME/.config/zsh";
|
||||||
|
TZ = ":/etc/localtime";
|
||||||
};
|
};
|
||||||
pathsToLink = [ "/share/zsh" ];
|
pathsToLink = [ "/share/zsh" ];
|
||||||
variables = {
|
variables = {
|
||||||
@@ -139,7 +141,7 @@
|
|||||||
# AMD_VULKAN_ICD = "RADV";
|
# AMD_VULKAN_ICD = "RADV";
|
||||||
# VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
# VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
||||||
# XDG_CURRENT_DESKTOP = "hyprland";
|
# XDG_CURRENT_DESKTOP = "hyprland";
|
||||||
#QT_QPA_PLATFORMTHEME = "gtk3";
|
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||||
#QT_QPA_PLATFORMTHEME_QT6 = "gtk3";
|
#QT_QPA_PLATFORMTHEME_QT6 = "gtk3";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -150,19 +152,27 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
##############################################################################
|
# ─── Nixpkgs policy ─────────────────────────────────────────────────────────
|
||||||
# Nixpkgs policy
|
|
||||||
##############################################################################
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
permittedInsecurePackages = [ ];
|
permittedInsecurePackages = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
##############################################################################
|
# ─── Decky ──────────────────────────────────────────────────────────────────
|
||||||
# decky
|
|
||||||
##############################################################################
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
inputs.jovian.overlays.default
|
inputs.jovian.overlays.default
|
||||||
|
#(final: prev: {
|
||||||
|
# ollama-vulkan = prev.ollama-vulkan.overrideAttrs (old: {
|
||||||
|
# version = "0.17.5";
|
||||||
|
# src = prev.fetchFromGitHub {
|
||||||
|
# owner = "ollama";
|
||||||
|
# repo = "ollama";
|
||||||
|
# tag = "v0.17.5";
|
||||||
|
# hash = "sha256-MPcLs9O7GZoPLnpGq3LQU13j6Nhhb4InoeXLts6yncU=";
|
||||||
|
# };
|
||||||
|
# vendorHash = "sha256-Lc1Ktdqtv2VhJQssk8K1UOimeEjVNvDWePE9WkamCos=";
|
||||||
|
# });
|
||||||
|
#})
|
||||||
];
|
];
|
||||||
jovian.decky-loader = {
|
jovian.decky-loader = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -173,9 +183,7 @@
|
|||||||
# extraPythonPackages = ps: with ps; [ some-python-package ];
|
# extraPythonPackages = ps: with ps; [ some-python-package ];
|
||||||
};
|
};
|
||||||
|
|
||||||
##############################################################################
|
# ─── State version ──────────────────────────────────────────────────────────
|
||||||
# State version
|
|
||||||
##############################################################################
|
|
||||||
system.stateVersion = "24.11"; # Did you read the comment?
|
system.stateVersion = "24.11"; # Did you read the comment?
|
||||||
|
|
||||||
specialisation = {
|
specialisation = {
|
||||||
@@ -190,9 +198,7 @@
|
|||||||
"00-main-system" = {
|
"00-main-system" = {
|
||||||
configuration = {
|
configuration = {
|
||||||
#boot.loader.systemd-boot.sortKey = lib.mkDefault "00000000000-main";
|
#boot.loader.systemd-boot.sortKey = lib.mkDefault "00000000000-main";
|
||||||
##############################################################################
|
# ─── Imports ─────────────────────────────────────────────────────────────────
|
||||||
# Imports
|
|
||||||
##############################################################################
|
|
||||||
imports = [
|
imports = [
|
||||||
./system/services.nix
|
./system/services.nix
|
||||||
./system/nixOSPkgs.nix
|
./system/nixOSPkgs.nix
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ config,
|
{
|
||||||
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
programs.dank-material-shell = {
|
programs.dank-material-shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true; # if you prefer starting from your compositor
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
#settings = {
|
#settings = {
|
||||||
|
|||||||
@@ -32,8 +32,10 @@
|
|||||||
;; There are two ways to load a theme. Both assume the theme is installed and
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
;; `load-theme' function. This is the default:
|
;; `load-theme' function. This is the default:
|
||||||
(setq doom-theme 'doom-one)
|
(add-to-list 'custom-theme-load-path
|
||||||
|
(expand-file-name "~/.config/emacs/themes"))
|
||||||
|
|
||||||
|
(setq doom-theme 'dank-emacs)
|
||||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
(setq display-line-numbers-type t)
|
(setq display-line-numbers-type t)
|
||||||
@@ -42,7 +44,6 @@
|
|||||||
;; change `org-directory'. It must be set before org loads!
|
;; change `org-directory'. It must be set before org loads!
|
||||||
(setq org-directory "~/org/")
|
(setq org-directory "~/org/")
|
||||||
|
|
||||||
(require 'direnv)
|
|
||||||
|
|
||||||
|
|
||||||
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
||||||
@@ -76,3 +77,6 @@
|
|||||||
;;
|
;;
|
||||||
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
||||||
;; they are implemented.
|
;; they are implemented.
|
||||||
|
|
||||||
|
(after! lsp-mode
|
||||||
|
(setq lsp-nix-nil-auto-archive t))
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
hypr-package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
|
||||||
hypr-portal =
|
hypr-portal =
|
||||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
hypr-split =
|
hypr-split =
|
||||||
@@ -18,7 +20,7 @@ let
|
|||||||
terminal = "footclient";
|
terminal = "footclient";
|
||||||
fileManager = "thunar";
|
fileManager = "thunar";
|
||||||
#runner = "${lib.getExe caelestia-cli} shell drawers toggle launcher";
|
#runner = "${lib.getExe caelestia-cli} shell drawers toggle launcher";
|
||||||
runner = "vicinae toggle";
|
runner = "dms ipc call spotlight toggle";
|
||||||
# runner = "anyrun";
|
# runner = "anyrun";
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
editor = "emacsclient -c";
|
editor = "emacsclient -c";
|
||||||
@@ -26,7 +28,7 @@ in
|
|||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = window_manager == "hyprland" || window_manager == "all";
|
enable = window_manager == "hyprland" || window_manager == "all";
|
||||||
package = hypr-package;
|
package = null; # Use the system package from programs.hyprland to avoid duplicate sessions
|
||||||
portalPackage = hypr-portal;
|
portalPackage = hypr-portal;
|
||||||
plugins = [
|
plugins = [
|
||||||
#pkgs.hyprlandPlugins.hyprsplit
|
#pkgs.hyprlandPlugins.hyprsplit
|
||||||
@@ -35,87 +37,27 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
##########################################################################
|
# ─── Monitors ────────────────────────────────────────────────────────────────
|
||||||
# Monitors
|
|
||||||
##########################################################################
|
|
||||||
source = [
|
source = [
|
||||||
"./dms/outputs.conf"
|
"./dms/outputs.conf"
|
||||||
#"./dms/cursor.conf"
|
"./dms/cursor.conf"
|
||||||
"./dms/colors.conf"
|
"./dms/colors.conf"
|
||||||
];
|
];
|
||||||
|
# ─── Autostart ───────────────────────────────────────────────────────────────
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
||||||
#monitor = lib.mkMerge [
|
|
||||||
# #(lib.mkIf (systemName == "laptop") [ "eDP-1,1920x1080@59.99700,0x0,1" ])
|
|
||||||
# (lib.mkIf (systemName == "pc") [
|
|
||||||
# "HDMI-A-2, disable"
|
|
||||||
# ])
|
|
||||||
#];
|
|
||||||
|
|
||||||
#monitorv2 =
|
|
||||||
# [ ]
|
|
||||||
# ++ lib.optional (systemName == "laptop") {
|
|
||||||
# output = "eDP-1";
|
|
||||||
# mode = "1920x1080@59.99700";
|
|
||||||
# scale = 1;
|
|
||||||
# position = "0x0";
|
|
||||||
# }
|
|
||||||
# ++ lib.optional (systemName == "pc") {
|
|
||||||
# output = "DP-1";
|
|
||||||
# mode = "2560x1440@239.97";
|
|
||||||
# position = "2560x0"; # "1440x750"; # Corrected from 2569x0 for seamless alignment
|
|
||||||
# scale = 1;
|
|
||||||
# #supports_wide_color = 1;
|
|
||||||
# bitdepth = 10;
|
|
||||||
# cm = "wide";
|
|
||||||
# supports_hdr = true;
|
|
||||||
# supports_wide_color = true;
|
|
||||||
# sdr_min_luminance = 0; # For true black on OLED
|
|
||||||
# sdr_max_luminance = 275; # Matches typical SDR brightness
|
|
||||||
# min_luminance = 0;
|
|
||||||
# max_luminance = 1000; # HDR peak
|
|
||||||
# max_avg_luminance = 400; # Average frame luminance
|
|
||||||
# sdrbrightness = 1.2; # Slight boost to avoid washed out look
|
|
||||||
# sdrsaturation = 1.0;
|
|
||||||
# }
|
|
||||||
# ++ lib.optional (systemName == "pc") {
|
|
||||||
# output = "DP-2";
|
|
||||||
# mode = "2560x1440@144";
|
|
||||||
# scale = 1;
|
|
||||||
# position = "0x0";
|
|
||||||
# transform = 0;
|
|
||||||
# };
|
|
||||||
|
|
||||||
##########################################################################
|
|
||||||
# Autostart
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
# Or execute your favorite apps at launch like this:
|
# Or execute your favorite apps at launch like this:
|
||||||
exec-once = [
|
exec-once = [
|
||||||
# "waybar"
|
# "waybar"
|
||||||
# "quickshell"
|
# "quickshell"
|
||||||
#"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
||||||
"${pkgs.kdePackages.polkit-kde-agent-1}/libexec/polkit-kde-authentication-agent-1"
|
|
||||||
"${pkgs.kdePackages.kwallet-pam}/libexec/pam_kwallet_init"
|
|
||||||
"fcitx5 -d"
|
"fcitx5 -d"
|
||||||
"foot -s"
|
"foot -s"
|
||||||
"systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME"
|
"systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME"
|
||||||
"dbus-update-activation-environment --systemd --all"
|
"dbus-update-activation-environment --systemd --all"
|
||||||
]
|
|
||||||
++ lib.optionals (config.home.username == "work") [
|
|
||||||
"thunderbird"
|
|
||||||
"sleep 10 && emacsclient -c --frame-parameters='((name . \"work\"))' $HOME/Documents/work/README.org"
|
|
||||||
];
|
];
|
||||||
# ++ lib.optional (systemName == "laptop")
|
|
||||||
# "swaybg -o eDP-1 -i ${../assets/Wallpapers/138.png}"
|
|
||||||
#
|
|
||||||
# ++ lib.optional (systemName == "pc")
|
|
||||||
# "swaybg -o HDMI-A-1 -i ${../assets/Wallpapers/138.png} -o DP-1 -i ${../assets/Wallpapers/138.png}";
|
|
||||||
|
|
||||||
##########################################################################
|
# ─── Plugins ─────────────────────────────────────────────────────────────────
|
||||||
# Plugins
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
plugin = {
|
plugin = {
|
||||||
split-monitor-workspaces = {
|
split-monitor-workspaces = {
|
||||||
@@ -129,18 +71,14 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
##########################################################################
|
# ─── Environment ─────────────────────────────────────────────────────────────
|
||||||
# Environment
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"XCURSOR_SIZE, 24"
|
"XCURSOR_SIZE, 24"
|
||||||
"HYPRCURSOR_SIZE, 24"
|
"HYPRCURSOR_SIZE, 24"
|
||||||
];
|
];
|
||||||
|
|
||||||
##########################################################################
|
# ─── General / Render / Decoration / Animations ─────────────────────────────
|
||||||
# General / Render / Decoration / Animations
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/
|
# https://wiki.hyprland.org/Configuring/Variables/
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||||
@@ -218,9 +156,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
##########################################################################
|
# ─── Layouts ─────────────────────────────────────────────────────────────────
|
||||||
# Layouts
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
dwindle = {
|
dwindle = {
|
||||||
@@ -236,9 +172,7 @@ in
|
|||||||
new_on_top = true;
|
new_on_top = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
##########################################################################
|
# ─── Misc / Input / Gestures / Devices ───────────────────────────────────────
|
||||||
# Misc / Input / Gestures / Devices
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||||
misc = {
|
misc = {
|
||||||
@@ -251,8 +185,8 @@ in
|
|||||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||||
input = {
|
input = {
|
||||||
kb_layout = lib.mkMerge [
|
kb_layout = lib.mkMerge [
|
||||||
(lib.mkIf (systemName == "laptop") "ie")
|
(lib.mkIf isLaptop "ie")
|
||||||
(lib.mkIf (systemName == "pc") "us")
|
(lib.mkIf isPc "us")
|
||||||
];
|
];
|
||||||
repeat_rate = 40;
|
repeat_rate = 40;
|
||||||
repeat_delay = 500;
|
repeat_delay = 500;
|
||||||
@@ -281,9 +215,7 @@ in
|
|||||||
sensitivity = -0.5;
|
sensitivity = -0.5;
|
||||||
};
|
};
|
||||||
|
|
||||||
##########################################################################
|
# ─── Binds ───────────────────────────────────────────────────────────────────
|
||||||
# Binds
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
# Launcher / apps
|
# Launcher / apps
|
||||||
@@ -301,6 +233,7 @@ in
|
|||||||
# ",Print, exec, grim -g \"$(slurp)\" - | swappy -f -"
|
# ",Print, exec, grim -g \"$(slurp)\" - | swappy -f -"
|
||||||
",Print, exec, dms screenshot"
|
",Print, exec, dms screenshot"
|
||||||
"${mod}, f1, exec, dms ipc call keybinds toggle hyprland"
|
"${mod}, f1, exec, dms ipc call keybinds toggle hyprland"
|
||||||
|
"${mod}, BACKSLASH, exec, dms ipc call notepad toggle"
|
||||||
|
|
||||||
# Dwindle
|
# Dwindle
|
||||||
"${mod}, P, pseudo, "
|
"${mod}, P, pseudo, "
|
||||||
@@ -381,8 +314,8 @@ in
|
|||||||
# ",XF86MonBrightnessDown, exec, light -U 5"
|
# ",XF86MonBrightnessDown, exec, light -U 5"
|
||||||
|
|
||||||
# Brightness
|
# Brightness
|
||||||
",XF86MonBrightnessUp, global, dms ipc call brightness increment 5"
|
",XF86MonBrightnessUp, exec, dms ipc call brightness increment 5 backlight:intel_backlight"
|
||||||
",XF86MonBrightnessDown, global, dms ipc call brightness decrement 5"
|
",XF86MonBrightnessDown, exec, dms ipc call brightness decrement 5 backlight:intel_backlight"
|
||||||
];
|
];
|
||||||
|
|
||||||
bindl = [
|
bindl = [
|
||||||
@@ -394,9 +327,7 @@ in
|
|||||||
|
|
||||||
binds = [ ];
|
binds = [ ];
|
||||||
|
|
||||||
##########################################################################
|
# ─── Rules (windows / workspaces) ────────────────────────────────────────────
|
||||||
# Rules (windows / workspaces)
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||||
@@ -418,9 +349,6 @@ in
|
|||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
# Fix some dragging issues with XWayland
|
||||||
"match:class ^$, match:title ^$, match:xwayland 1, match:float 1, match:fullscreen 0, match:pin 0, no_focus on"
|
"match:class ^$, match:title ^$, match:xwayland 1, match:float 1, match:fullscreen 0, match:pin 0, no_focus on"
|
||||||
|
|
||||||
"match:class thunderbird, workspace special:magic silent"
|
|
||||||
"match:class emacs, match:title work, workspace special:magic silent"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,6 +7,10 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
hypridle = {
|
hypridle = {
|
||||||
@@ -24,19 +28,19 @@
|
|||||||
on-timeout = "loginctl lock-session";
|
on-timeout = "loginctl lock-session";
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
++ lib.optional (systemName == "laptop") {
|
++ lib.optional isLaptop {
|
||||||
timeout = 700;
|
timeout = 700;
|
||||||
on-timeout = "hyprctl dispatch dpms off"; # Turns off all displays
|
on-timeout = "hyprctl dispatch dpms off";
|
||||||
on-resume = "hyprctl dispatch dpms on"; # Turns displays back on
|
on-resume = "hyprctl dispatch dpms on";
|
||||||
}
|
}
|
||||||
++ lib.optional (systemName == "laptop") {
|
++ lib.optional isLaptop {
|
||||||
timeout = 800;
|
timeout = 800;
|
||||||
on-timeout = "systemctl suspend-then-hibernate";
|
on-timeout = "systemctl suspend-then-hibernate";
|
||||||
}
|
}
|
||||||
++ lib.optional (systemName == "pc") {
|
++ lib.optional isPc {
|
||||||
timeout = 700; # Adjust timeout as needed (in seconds)
|
timeout = 700;
|
||||||
on-timeout = "hyprctl dispatch dpms off"; # Turns off all displays
|
on-timeout = "hyprctl dispatch dpms off";
|
||||||
on-resume = "hyprctl dispatch dpms on"; # Turns displays back on
|
on-resume = "hyprctl dispatch dpms on";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
772
dots/niri.nix
772
dots/niri.nix
@@ -1,461 +1,349 @@
|
|||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
window_manager,
|
||||||
|
systemName,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
|
||||||
|
# Match hyprland definitions
|
||||||
|
mod = "Alt";
|
||||||
|
terminal = "footclient";
|
||||||
|
fileManager = "thunar";
|
||||||
|
runner = "dms ipc call spotlight toggle";
|
||||||
|
browser = "firefox";
|
||||||
|
editor = "emacsclient -c";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs = {
|
programs.niri = {
|
||||||
niri = {
|
enable = window_manager == "niri" || window_manager == "all";
|
||||||
settings = {
|
|
||||||
input = {
|
|
||||||
keyboard = {
|
|
||||||
xkb = {
|
|
||||||
# You can set rules, model, layout, variant and options.
|
|
||||||
# For more information, see xkeyboard-config(7).
|
|
||||||
|
|
||||||
# For example:
|
settings = {
|
||||||
# layout "us,ru"
|
# Input configuration (aligned with hyprland)
|
||||||
# options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
|
input = {
|
||||||
};
|
keyboard = {
|
||||||
|
xkb.layout = lib.mkMerge [
|
||||||
# Enable numlock on startup, omitting this setting disables it.
|
(lib.mkIf isLaptop "ie")
|
||||||
numlock = true;
|
(lib.mkIf isPc "us")
|
||||||
};
|
|
||||||
|
|
||||||
# Next sections include libinput settings.
|
|
||||||
# Omitting settings disables them, or leaves them at their default values.
|
|
||||||
# All commented-out settings here are examples, not defaults.
|
|
||||||
touchpad = {
|
|
||||||
# off
|
|
||||||
tap = true;
|
|
||||||
# dwt
|
|
||||||
# dwtp
|
|
||||||
# drag false
|
|
||||||
# drag-lock
|
|
||||||
natural-scroll = true;
|
|
||||||
# accel-speed 0.2
|
|
||||||
# accel-profile "flat"
|
|
||||||
# scroll-method "two-finger"
|
|
||||||
# disabled-on-external-mouse
|
|
||||||
};
|
|
||||||
|
|
||||||
mouse = {
|
|
||||||
# off
|
|
||||||
# natural-scroll
|
|
||||||
# accel-speed 0.2
|
|
||||||
# accel-profile "flat"
|
|
||||||
# scroll-method "no-scroll"
|
|
||||||
};
|
|
||||||
|
|
||||||
trackpoint = {
|
|
||||||
# off
|
|
||||||
# natural-scroll
|
|
||||||
# accel-speed 0.2
|
|
||||||
# accel-profile "flat"
|
|
||||||
# scroll-method "on-button-down"
|
|
||||||
# scroll-button 273
|
|
||||||
# scroll-button-lock
|
|
||||||
# middle-emulation
|
|
||||||
};
|
|
||||||
|
|
||||||
# Uncomment this to make the mouse warp to the center of newly focused windows.
|
|
||||||
# warp-mouse-to-focus
|
|
||||||
|
|
||||||
# Focus windows and outputs automatically when moving the mouse into them.
|
|
||||||
# Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
|
||||||
# focus-follows-mouse max-scroll-amount="0%"
|
|
||||||
};
|
|
||||||
# You can configure outputs by their name, which you can find
|
|
||||||
# by running `niri msg outputs` while inside a niri instance.
|
|
||||||
# The built-in laptop monitor is usually called "eDP-1".
|
|
||||||
# Find more information on the wiki:
|
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
|
||||||
# Remember to uncomment the node by removing "/-"!
|
|
||||||
outputs."eDP-1" = {
|
|
||||||
# Uncomment this line to disable this output.
|
|
||||||
# off
|
|
||||||
|
|
||||||
# Resolution and, optionally, refresh rate of the output.
|
|
||||||
# The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
|
||||||
# If the refresh rate is omitted, niri will pick the highest refresh rate
|
|
||||||
# for the resolution.
|
|
||||||
# If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
|
||||||
# Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
|
||||||
mode = {
|
|
||||||
width = 1920;
|
|
||||||
height = 1080;
|
|
||||||
refresh = 60.00;
|
|
||||||
};
|
|
||||||
|
|
||||||
# You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
|
||||||
scale = 1.0;
|
|
||||||
|
|
||||||
# Transform allows to rotate the output counter-clockwise, valid values are:
|
|
||||||
# normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
|
||||||
# transform = "normal";
|
|
||||||
|
|
||||||
# Position of the output in the global coordinate space.
|
|
||||||
# This affects directional monitor actions like "focus-monitor-left", and cursor movement.
|
|
||||||
# The cursor can only move between directly adjacent outputs.
|
|
||||||
# Output scale and rotation has to be taken into account for positioning:
|
|
||||||
# outputs are sized in logical, or scaled, pixels.
|
|
||||||
# For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
|
|
||||||
# so to put another output directly adjacent to it on the right, set its x to 1920.
|
|
||||||
# If the position is unset or results in an overlap, the output is instead placed
|
|
||||||
# automatically.
|
|
||||||
position = {
|
|
||||||
x = 1280;
|
|
||||||
y = 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Settings that influence how windows are positioned and sized.
|
|
||||||
# Find more information on the wiki:
|
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
|
||||||
layout = {
|
|
||||||
# Set gaps around windows in logical pixels.
|
|
||||||
gaps = 16;
|
|
||||||
|
|
||||||
# When to center a column when changing focus, options are:
|
|
||||||
# - "never", default behavior, focusing an off-screen column will keep at the left
|
|
||||||
# or right edge of the screen.
|
|
||||||
# - "always", the focused column will always be centered.
|
|
||||||
# - "on-overflow", focusing a column will center it if it doesn't fit
|
|
||||||
# together with the previously focused column.
|
|
||||||
center-focused-column = "never";
|
|
||||||
|
|
||||||
# You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
|
||||||
preset-column-widths = [
|
|
||||||
# Proportion sets the width as a fraction of the output width, taking gaps into account.
|
|
||||||
# For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
|
|
||||||
# The default preset widths are 1/3, 1/2 and 2/3 of the output.
|
|
||||||
{ proportion = 0.33333; }
|
|
||||||
{ proportion = 0.5; }
|
|
||||||
{ proportion = 0.66667; }
|
|
||||||
|
|
||||||
# Fixed sets the width in logical pixels exactly.
|
|
||||||
# fixed 1920
|
|
||||||
];
|
];
|
||||||
|
repeat-rate = 40;
|
||||||
# You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
|
repeat-delay = 500;
|
||||||
# preset-window-heights { }
|
|
||||||
|
|
||||||
# You can change the default width of the new windows.
|
|
||||||
default-column-width = {
|
|
||||||
proportion = 0.5;
|
|
||||||
};
|
|
||||||
# If you leave the brackets empty, the windows themselves will decide their initial width.
|
|
||||||
# default-column-width {}
|
|
||||||
|
|
||||||
# By default focus ring and border are rendered as a solid background rectangle
|
|
||||||
# behind windows. That is, they will show up through semitransparent windows.
|
|
||||||
# This is because windows using client-side decorations can have an arbitrary shape.
|
|
||||||
#
|
|
||||||
# If you don't like that, you should uncomment `prefer-no-csd` below.
|
|
||||||
# Niri will draw focus ring and border *around* windows that agree to omit their
|
|
||||||
# client-side decorations.
|
|
||||||
#
|
|
||||||
# Alternatively, you can override it with a window rule called
|
|
||||||
# `draw-border-with-background`.
|
|
||||||
|
|
||||||
# You can change how the focus ring looks.
|
|
||||||
focus-ring = {
|
|
||||||
#omment this line to disable the focus ring.
|
|
||||||
# off
|
|
||||||
|
|
||||||
# How many logical pixels the ring extends out from the windows.
|
|
||||||
width = 4;
|
|
||||||
|
|
||||||
# Colors can be set in a variety of ways:
|
|
||||||
# - CSS named colors: "red"
|
|
||||||
# - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
|
|
||||||
# - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
|
||||||
|
|
||||||
# Color of the ring on the active monitor.
|
|
||||||
active = {
|
|
||||||
color = "#7fc8ff";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Color of the ring on inactive monitors.
|
|
||||||
#
|
|
||||||
# The focus ring only draws around the active window, so the only place
|
|
||||||
# where you can see its inactive-color is on other monitors.
|
|
||||||
inactive = {
|
|
||||||
color = "#505050";
|
|
||||||
};
|
|
||||||
|
|
||||||
# You can also use gradients. They take precedence over solid colors.
|
|
||||||
# Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
|
||||||
# The angle is the same as in linear-gradient, and is optional,
|
|
||||||
# defaulting to 180 (top-to-bottom gradient).
|
|
||||||
# You can use any CSS linear-gradient tool on the web to set these up.
|
|
||||||
# Changing the color space is also supported, check the wiki for more info.
|
|
||||||
#
|
|
||||||
# active-gradient from="#80c8ff" to="#c7ff7f" angle=45
|
|
||||||
|
|
||||||
# You can also color the gradient relative to the entire view
|
|
||||||
# of the workspace, rather than relative to just the window itself.
|
|
||||||
# To do that, set relative-to="workspace-view".
|
|
||||||
#
|
|
||||||
# inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
|
||||||
};
|
|
||||||
|
|
||||||
# You can also add a border. It's similar to the focus ring, but always visible.
|
|
||||||
border = {
|
|
||||||
# The settings are the same as for the focus ring.
|
|
||||||
# If you enable the border, you probably want to disable the focus ring.
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
width = 4;
|
|
||||||
active = {
|
|
||||||
color = "#ffc87f";
|
|
||||||
};
|
|
||||||
inactive = {
|
|
||||||
color = "#505050";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Color of the border around windows that request your attention.
|
|
||||||
urgent = {
|
|
||||||
color = "#9b0000";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Gradients can use a few different interpolation color spaces.
|
|
||||||
# For example, this is a pastel rainbow gradient via in="oklch longer hue".
|
|
||||||
#
|
|
||||||
# active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue"
|
|
||||||
|
|
||||||
# inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
|
||||||
};
|
|
||||||
|
|
||||||
# You can enable drop shadows for windows.
|
|
||||||
shadow = {
|
|
||||||
# Uncomment the next line to enable shadows.
|
|
||||||
# on
|
|
||||||
|
|
||||||
# By default, the shadow draws only around its window, and not behind it.
|
|
||||||
# Uncomment this setting to make the shadow draw behind its window.
|
|
||||||
#
|
|
||||||
# Note that niri has no way of knowing about the CSD window corner
|
|
||||||
# radius. It has to assume that windows have square corners, leading to
|
|
||||||
# shadow artifacts inside the CSD rounded corners. This setting fixes
|
|
||||||
# those artifacts.
|
|
||||||
#
|
|
||||||
# However, instead you may want to set prefer-no-csd and/or
|
|
||||||
# geometry-corner-radius. Then, niri will know the corner radius and
|
|
||||||
# draw the shadow correctly, without having to draw it behind the
|
|
||||||
# window. These will also remove client-side shadows if the window
|
|
||||||
# draws any.
|
|
||||||
#
|
|
||||||
# draw-behind-window true
|
|
||||||
|
|
||||||
# You can change how shadows look. The values below are in logical
|
|
||||||
# pixels and match the CSS box-shadow properties.
|
|
||||||
|
|
||||||
# Softness controls the shadow blur radius.
|
|
||||||
softness = 30;
|
|
||||||
|
|
||||||
# Spread expands the shadow.
|
|
||||||
spread = 5;
|
|
||||||
|
|
||||||
# Offset moves the shadow relative to the window.
|
|
||||||
offset = {
|
|
||||||
x = 0;
|
|
||||||
y = 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
# You can also change the shadow color and opacity.
|
|
||||||
color = "#0007";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
|
||||||
# You can think of them as a kind of outer gaps. They are set in logical pixels.
|
|
||||||
# Left and right struts will cause the next window to the side to always be visible.
|
|
||||||
# Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
|
||||||
# layer-shell panels and regular gaps.
|
|
||||||
struts = {
|
|
||||||
# left 64
|
|
||||||
# right 64
|
|
||||||
# top 64
|
|
||||||
# bottom 64
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# Add lines like this to spawn processes at startup.
|
|
||||||
# Note that running niri as a session supports xdg-desktop-autostart,
|
|
||||||
# which may be more convenient to use.
|
|
||||||
# See the binds section below for more spawn examples.
|
|
||||||
spawn-at-startup = [
|
|
||||||
{
|
|
||||||
command = [ "xwayland-satellite" ];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
command = [ "foot -s" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
# Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
|
||||||
# If the client will specifically ask for CSD, the request will be honored.
|
|
||||||
# Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
|
|
||||||
# This option will also fix border/focus ring drawing behind some semitransparent windows.
|
|
||||||
# After enabling or disabling this, you need to restart the apps for this to take effect.
|
|
||||||
# prefer-no-csd
|
|
||||||
# You can change the path where screenshots are saved.
|
|
||||||
# A ~ at the front will be expanded to the home directory.
|
|
||||||
# The path is formatted with strftime(3) to give you the screenshot date and time.
|
|
||||||
#sreenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
|
|
||||||
# You can also set this to null to disable saving screenshots to disk.
|
|
||||||
# screenshot-path null
|
|
||||||
#/ Animation settings.
|
|
||||||
# The wiki explains how to configure individual animations:
|
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Animations
|
|
||||||
animations = {
|
|
||||||
# Uncomment to turn off all animations.
|
|
||||||
# off
|
|
||||||
|
|
||||||
# Slow down all animations by this factor. Values below 1 speed them up instead.
|
touchpad = {
|
||||||
# slowdown 3.0
|
tap = true;
|
||||||
|
natural-scroll = false; # Match hyprland
|
||||||
|
dwt = true;
|
||||||
};
|
};
|
||||||
# Window rules let you adjust behavior for individual windows.
|
|
||||||
# Find more information on the wiki:
|
mouse = {
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
|
accel-profile = "flat";
|
||||||
#/ Work around WezTerm's initial configure bug
|
|
||||||
# by setting an empty default-column-width.
|
|
||||||
window-rules = [
|
|
||||||
# This regular expression is intentionally made as specific as possible,
|
|
||||||
# since this is the default config, and we want no false positives.
|
|
||||||
# You can get away with just app-id="wezterm" if you want.
|
|
||||||
#match = { app-id=#"^org\.wezfurlong\.wezterm$"\#};
|
|
||||||
#default-column-width = {}
|
|
||||||
];
|
|
||||||
environment = {
|
|
||||||
DISPLAY = ":0";
|
|
||||||
};
|
};
|
||||||
binds = with config.lib.niri.actions; {
|
|
||||||
# App launchers
|
|
||||||
"Alt+Return".action = spawn "footclient";
|
|
||||||
"Alt+D".action = spawn "anyrun";
|
|
||||||
"Super+Alt+L".action = spawn "${lib.getExe pkgs.hyprlock}";
|
|
||||||
|
|
||||||
# Audio control
|
focus-follows-mouse = {
|
||||||
"XF86AudioRaiseVolume".action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+";
|
enable = true;
|
||||||
"XF86AudioLowerVolume".action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-";
|
max-scroll-amount = "0%"; # Don't scroll/center on hover, only on click
|
||||||
"XF86AudioMute".action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
|
|
||||||
"XF86AudioMicMute".action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle";
|
|
||||||
|
|
||||||
# Brightness control
|
|
||||||
"XF86MonBrightnessUp".action = spawn "brightnessctl" "--class=backlight" "set" "+10%";
|
|
||||||
"XF86MonBrightnessDown".action = spawn "brightnessctl" "--class=backlight" "set" "10%-";
|
|
||||||
|
|
||||||
# Overview and quitting
|
|
||||||
"Alt+O".action = toggle-overview;
|
|
||||||
"Alt+Q".action = close-window;
|
|
||||||
"Alt+Shift+E".action = quit;
|
|
||||||
"Alt+Ctrl+Shift+E".action = quit { skip-confirmation = true; };
|
|
||||||
|
|
||||||
# Navigation
|
|
||||||
"Alt+H".action = focus-column-left;
|
|
||||||
"Alt+J".action = focus-window-down;
|
|
||||||
"Alt+K".action = focus-window-up;
|
|
||||||
"Alt+L".action = focus-column-right;
|
|
||||||
|
|
||||||
"Alt+Ctrl+H".action = move-column-left;
|
|
||||||
"Alt+Ctrl+J".action = move-window-down;
|
|
||||||
"Alt+Ctrl+K".action = move-window-up;
|
|
||||||
"Alt+Ctrl+L".action = move-column-right;
|
|
||||||
|
|
||||||
"Alt+Shift+H".action = focus-monitor-left;
|
|
||||||
"Alt+Shift+J".action = focus-monitor-down;
|
|
||||||
"Alt+Shift+K".action = focus-monitor-up;
|
|
||||||
"Alt+Shift+L".action = focus-monitor-right;
|
|
||||||
|
|
||||||
"Alt+Shift+Ctrl+H".action = move-column-to-monitor-left;
|
|
||||||
"Alt+Shift+Ctrl+J".action = move-column-to-monitor-down;
|
|
||||||
"Alt+Shift+Ctrl+K".action = move-column-to-monitor-up;
|
|
||||||
"Alt+Shift+Ctrl+L".action = move-column-to-monitor-right;
|
|
||||||
|
|
||||||
"Alt+U".action = focus-workspace-down;
|
|
||||||
"Alt+I".action = focus-workspace-up;
|
|
||||||
"Alt+Ctrl+U".action = move-column-to-workspace-down;
|
|
||||||
"Alt+Ctrl+I".action = move-column-to-workspace-up;
|
|
||||||
"Alt+Shift+U".action = move-workspace-down;
|
|
||||||
"Alt+Shift+I".action = move-workspace-up;
|
|
||||||
|
|
||||||
# Scroll bindings
|
|
||||||
"Alt+WheelScrollDown".action = focus-workspace-down;
|
|
||||||
"Alt+WheelScrollUp".action = focus-workspace-up;
|
|
||||||
"Alt+Ctrl+WheelScrollDown".action = move-column-to-workspace-down;
|
|
||||||
"Alt+Ctrl+WheelScrollUp".action = move-column-to-workspace-up;
|
|
||||||
|
|
||||||
"Alt+WheelScrollLeft".action = focus-column-left;
|
|
||||||
"Alt+WheelScrollRight".action = focus-column-right;
|
|
||||||
"Alt+Ctrl+WheelScrollLeft".action = move-column-left;
|
|
||||||
"Alt+Ctrl+WheelScrollRight".action = move-column-right;
|
|
||||||
|
|
||||||
"Alt+Shift+WheelScrollUp".action = focus-column-left;
|
|
||||||
"Alt+Shift+WheelScrollDown".action = focus-column-right;
|
|
||||||
"Alt+Ctrl+Shift+WheelScrollUp".action = move-column-left;
|
|
||||||
"Alt+Ctrl+Shift+WheelScrollDown".action = move-column-right;
|
|
||||||
|
|
||||||
# Workspace numbers (1–9)
|
|
||||||
"Alt+1".action = focus-workspace 1;
|
|
||||||
"Alt+2".action = focus-workspace 2;
|
|
||||||
"Alt+3".action = focus-workspace 3;
|
|
||||||
"Alt+4".action = focus-workspace 4;
|
|
||||||
"Alt+5".action = focus-workspace 5;
|
|
||||||
"Alt+6".action = focus-workspace 6;
|
|
||||||
"Alt+7".action = focus-workspace 7;
|
|
||||||
"Alt+8".action = focus-workspace 8;
|
|
||||||
"Alt+9".action = focus-workspace 9;
|
|
||||||
|
|
||||||
"Alt+Ctrl+1".action = move-column-to-index 1;
|
|
||||||
"Alt+Ctrl+2".action = move-column-to-index 2;
|
|
||||||
"Alt+Ctrl+3".action = move-column-to-index 3;
|
|
||||||
"Alt+Ctrl+4".action = move-column-to-index 4;
|
|
||||||
"Alt+Ctrl+5".action = move-column-to-index 5;
|
|
||||||
"Alt+Ctrl+6".action = move-column-to-index 6;
|
|
||||||
"Alt+Ctrl+7".action = move-column-to-index 7;
|
|
||||||
"Alt+Ctrl+8".action = move-column-to-index 8;
|
|
||||||
"Alt+Ctrl+9".action = move-column-to-index 9;
|
|
||||||
|
|
||||||
# Window & column management
|
|
||||||
"Alt+Comma".action = consume-window-into-column;
|
|
||||||
"Alt+Period".action = expel-window-from-column;
|
|
||||||
"Alt+BracketLeft".action = consume-or-expel-window-left;
|
|
||||||
"Alt+BracketRight".action = consume-or-expel-window-right;
|
|
||||||
|
|
||||||
"Alt+F".action = maximize-column;
|
|
||||||
"Alt+Shift+F".action = fullscreen-window;
|
|
||||||
"Alt+Ctrl+F".action = expand-column-to-available-width;
|
|
||||||
|
|
||||||
"Alt+C".action = center-column;
|
|
||||||
"Alt+Ctrl+C".action = center-visible-columns;
|
|
||||||
|
|
||||||
"Alt+Minus".action = set-column-width "-10%";
|
|
||||||
"Alt+Plus".action = set-column-width "+10%";
|
|
||||||
"Alt+Shift+Minus".action = set-window-height "-10%";
|
|
||||||
"Alt+Shift+Plus".action = set-window-height "+10%";
|
|
||||||
|
|
||||||
"Alt+R".action = switch-preset-column-width;
|
|
||||||
"Alt+Shift+R".action = switch-preset-window-height;
|
|
||||||
"Alt+Ctrl+R".action = reset-window-height;
|
|
||||||
|
|
||||||
"Alt+V".action = toggle-window-floating;
|
|
||||||
"Alt+Shift+V".action = switch-focus-between-floating-and-tiling;
|
|
||||||
|
|
||||||
"Alt+W".action = toggle-column-tabbed-display;
|
|
||||||
|
|
||||||
# Screenshots
|
|
||||||
#"Print".action = screenshot { show-pointer = false; };
|
|
||||||
"Ctrl+Print".action.screenshot-screen = {
|
|
||||||
write-to-disk = false;
|
|
||||||
};
|
|
||||||
#"Alt+Print".action = screenshot-window;
|
|
||||||
|
|
||||||
# Other
|
|
||||||
"Alt+Escape".action = toggle-keyboard-shortcuts-inhibit;
|
|
||||||
"Alt+Shift+P".action = power-off-monitors;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Layout settings (aligned with hyprland gaps)
|
||||||
|
layout = {
|
||||||
|
gaps = 10; # hyprland: gaps_out = 10
|
||||||
|
center-focused-column = "always";
|
||||||
|
|
||||||
|
preset-column-widths = [
|
||||||
|
{ proportion = 1.0 / 3.0; }
|
||||||
|
{ proportion = 1.0 / 2.0; }
|
||||||
|
{ proportion = 2.0 / 3.0; }
|
||||||
|
{ proportion = 0.9; }
|
||||||
|
];
|
||||||
|
|
||||||
|
default-column-width = {
|
||||||
|
proportion = 0.95;
|
||||||
|
};
|
||||||
|
|
||||||
|
focus-ring = {
|
||||||
|
enable = true; # Hyprland doesn't have separate focus ring
|
||||||
|
};
|
||||||
|
|
||||||
|
border = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
shadow = {
|
||||||
|
enable = true;
|
||||||
|
softness = 30;
|
||||||
|
spread = 5;
|
||||||
|
offset = {
|
||||||
|
x = 0;
|
||||||
|
y = 5;
|
||||||
|
};
|
||||||
|
color = "#00000070";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Startup programs (aligned with hyprland exec-once)
|
||||||
|
spawn-at-startup = [
|
||||||
|
{ command = [ "xwayland-satellite" ]; }
|
||||||
|
{
|
||||||
|
command = [
|
||||||
|
"fcitx5"
|
||||||
|
"-d"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = [
|
||||||
|
"foot"
|
||||||
|
"-s"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
"systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = [
|
||||||
|
"dbus-update-activation-environment"
|
||||||
|
"--systemd"
|
||||||
|
"--all"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
# Prefer server-side decorations
|
||||||
|
prefer-no-csd = true;
|
||||||
|
|
||||||
|
# Screenshot path
|
||||||
|
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
environment = {
|
||||||
|
DISPLAY = ":0";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Hotkey overlay settings
|
||||||
|
hotkey-overlay.skip-at-startup = true;
|
||||||
|
|
||||||
|
# Keybinds (aligned with hyprland)
|
||||||
|
binds = {
|
||||||
|
# App launchers (matching hyprland)
|
||||||
|
"${mod}+Return".action.spawn = [ terminal ];
|
||||||
|
"${mod}+B".action.spawn = [ browser ];
|
||||||
|
"${mod}+F".action.spawn = [ fileManager ];
|
||||||
|
"${mod}+D".action.spawn = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
runner
|
||||||
|
];
|
||||||
|
"${mod}+E".action.spawn = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
editor
|
||||||
|
];
|
||||||
|
|
||||||
|
# Audio control (using pamixer like hyprland)
|
||||||
|
"XF86AudioRaiseVolume".action.spawn = [
|
||||||
|
"pamixer"
|
||||||
|
"-i"
|
||||||
|
"5"
|
||||||
|
];
|
||||||
|
"XF86AudioLowerVolume".action.spawn = [
|
||||||
|
"pamixer"
|
||||||
|
"-d"
|
||||||
|
"5"
|
||||||
|
];
|
||||||
|
"XF86AudioMute".action.spawn = [
|
||||||
|
"pamixer"
|
||||||
|
"--toggle-mute"
|
||||||
|
];
|
||||||
|
"XF86AudioMicMute".action.spawn = [
|
||||||
|
"wpctl"
|
||||||
|
"set-mute"
|
||||||
|
"@DEFAULT_AUDIO_SOURCE@"
|
||||||
|
"toggle"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Media controls (matching hyprland)
|
||||||
|
"XF86AudioNext".action.spawn = [
|
||||||
|
"playerctl"
|
||||||
|
"next"
|
||||||
|
];
|
||||||
|
"XF86AudioPrev".action.spawn = [
|
||||||
|
"playerctl"
|
||||||
|
"previous"
|
||||||
|
];
|
||||||
|
"XF86AudioPlay".action.spawn = [
|
||||||
|
"playerctl"
|
||||||
|
"play-pause"
|
||||||
|
];
|
||||||
|
"XF86AudioPause".action.spawn = [
|
||||||
|
"playerctl"
|
||||||
|
"play-pause"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Brightness control
|
||||||
|
"XF86MonBrightnessUp".action.spawn = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
"dms ipc call brightness increment 5 backlight:intel_backlight"
|
||||||
|
];
|
||||||
|
"XF86MonBrightnessDown".action.spawn = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
"dms ipc call brightness decrement 5 backlight:intel_backlight"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Window management (matching hyprland)
|
||||||
|
"${mod}+Q".action.close-window = { };
|
||||||
|
"${mod}+M".action.quit = { }; # Match hyprland exit
|
||||||
|
"${mod}+V".action.toggle-window-floating = { };
|
||||||
|
"${mod}+T".action.fullscreen-window = { }; # Match hyprland fullscreen
|
||||||
|
|
||||||
|
# Screenshots (using dms like hyprland)
|
||||||
|
"Print".action.spawn = [
|
||||||
|
"dms"
|
||||||
|
"screenshot"
|
||||||
|
];
|
||||||
|
"${mod}+F1".action.spawn = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
"dms ipc call keybinds toggle niri"
|
||||||
|
];
|
||||||
|
"${mod}+Backslash".action.spawn = [
|
||||||
|
"sh"
|
||||||
|
"-c"
|
||||||
|
"dms ipc call notepad toggle"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Focus navigation (vim-style, with workspace wraparound for j/k)
|
||||||
|
"${mod}+H".action.focus-column-or-monitor-left = { };
|
||||||
|
"${mod}+J".action.focus-window-or-workspace-down = { };
|
||||||
|
"${mod}+K".action.focus-window-or-workspace-up = { };
|
||||||
|
"${mod}+L".action.focus-column-or-monitor-right = { };
|
||||||
|
|
||||||
|
# Move windows (matching hyprland)
|
||||||
|
"${mod}+Shift+H".action.move-column-left = { };
|
||||||
|
"${mod}+Shift+J".action.move-window-down = { };
|
||||||
|
"${mod}+Shift+K".action.move-window-up = { };
|
||||||
|
"${mod}+Shift+L".action.move-column-right = { };
|
||||||
|
|
||||||
|
# Monitor focus
|
||||||
|
"${mod}+Ctrl+H".action.focus-monitor-left = { };
|
||||||
|
"${mod}+Ctrl+J".action.focus-monitor-down = { };
|
||||||
|
"${mod}+Ctrl+K".action.focus-monitor-up = { };
|
||||||
|
"${mod}+Ctrl+L".action.focus-monitor-right = { };
|
||||||
|
|
||||||
|
# Move to monitor
|
||||||
|
"${mod}+Ctrl+Shift+H".action.move-column-to-monitor-left = { };
|
||||||
|
"${mod}+Ctrl+Shift+J".action.move-column-to-monitor-down = { };
|
||||||
|
"${mod}+Ctrl+Shift+K".action.move-column-to-monitor-up = { };
|
||||||
|
"${mod}+Ctrl+Shift+L".action.move-column-to-monitor-right = { };
|
||||||
|
|
||||||
|
# Workspace numbers (matching hyprland)
|
||||||
|
"${mod}+1".action.focus-workspace = 1;
|
||||||
|
"${mod}+2".action.focus-workspace = 2;
|
||||||
|
"${mod}+3".action.focus-workspace = 3;
|
||||||
|
"${mod}+4".action.focus-workspace = 4;
|
||||||
|
"${mod}+5".action.focus-workspace = 5;
|
||||||
|
"${mod}+6".action.focus-workspace = 6;
|
||||||
|
"${mod}+7".action.focus-workspace = 7;
|
||||||
|
"${mod}+8".action.focus-workspace = 8;
|
||||||
|
"${mod}+9".action.focus-workspace = 9;
|
||||||
|
"${mod}+0".action.focus-workspace = 10;
|
||||||
|
|
||||||
|
"${mod}+Shift+1".action.move-column-to-workspace = 1;
|
||||||
|
"${mod}+Shift+2".action.move-column-to-workspace = 2;
|
||||||
|
"${mod}+Shift+3".action.move-column-to-workspace = 3;
|
||||||
|
"${mod}+Shift+4".action.move-column-to-workspace = 4;
|
||||||
|
"${mod}+Shift+5".action.move-column-to-workspace = 5;
|
||||||
|
"${mod}+Shift+6".action.move-column-to-workspace = 6;
|
||||||
|
"${mod}+Shift+7".action.move-column-to-workspace = 7;
|
||||||
|
"${mod}+Shift+8".action.move-column-to-workspace = 8;
|
||||||
|
"${mod}+Shift+9".action.move-column-to-workspace = 9;
|
||||||
|
"${mod}+Shift+0".action.move-column-to-workspace = 10;
|
||||||
|
|
||||||
|
# Scroll through workspaces (matching hyprland mouse scroll)
|
||||||
|
"${mod}+WheelScrollDown".action.focus-workspace-down = { };
|
||||||
|
"${mod}+WheelScrollUp".action.focus-workspace-up = { };
|
||||||
|
|
||||||
|
# Column management (niri-specific, kept similar)
|
||||||
|
"${mod}+Comma".action.consume-window-into-column = { };
|
||||||
|
"${mod}+Period".action.expel-window-from-column = { };
|
||||||
|
"${mod}+BracketLeft".action.consume-or-expel-window-left = { };
|
||||||
|
"${mod}+BracketRight".action.consume-or-expel-window-right = { };
|
||||||
|
"${mod}+Semicolon".action.focus-column-first = { }; # Similar to promote in master layout
|
||||||
|
|
||||||
|
# Window sizing
|
||||||
|
"${mod}+Minus".action.set-column-width = "-10%";
|
||||||
|
"${mod}+Equal".action.set-column-width = "+10%";
|
||||||
|
"${mod}+Shift+Minus".action.set-window-height = "-10%";
|
||||||
|
"${mod}+Shift+Equal".action.set-window-height = "+10%";
|
||||||
|
|
||||||
|
"${mod}+R".action.switch-preset-column-width = { };
|
||||||
|
"${mod}+Shift+R".action.switch-preset-window-height = { };
|
||||||
|
"${mod}+C".action.center-column = { };
|
||||||
|
|
||||||
|
# Floating
|
||||||
|
"${mod}+Shift+V".action.switch-focus-between-floating-and-tiling = { };
|
||||||
|
|
||||||
|
# Tabs
|
||||||
|
"${mod}+W".action.toggle-column-tabbed-display = { };
|
||||||
|
|
||||||
|
# Window overview (alt-tab replacement)
|
||||||
|
"${mod}+Tab".action.toggle-overview = { };
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
"${mod}+Escape".action.toggle-keyboard-shortcuts-inhibit = { };
|
||||||
|
"${mod}+Shift+P".action.power-off-monitors = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
# Window rules
|
||||||
|
window-rules = [
|
||||||
|
#{
|
||||||
|
# matches = [
|
||||||
|
# { app-id = "firefox"; }
|
||||||
|
# { app-id = "thunar"; }
|
||||||
|
# { app-id = "vesktop"; }
|
||||||
|
# ];
|
||||||
|
# default-column-width = {
|
||||||
|
# proportion = 0.95;
|
||||||
|
# };
|
||||||
|
#}
|
||||||
|
# Float file dialogs
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{ title = "^Open File$"; }
|
||||||
|
{ title = "^Save File$"; }
|
||||||
|
];
|
||||||
|
open-floating = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
matches = [ { app-id = "vesktop"; } ];
|
||||||
|
block-out-from = "screencast";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Redirect the generated config to a different file
|
||||||
|
xdg.configFile.niri-config.target = lib.mkForce "niri/generated.kdl";
|
||||||
|
|
||||||
|
# Create the main config that includes everything
|
||||||
|
xdg.configFile."niri/config.kdl".text = ''
|
||||||
|
include "generated.kdl"
|
||||||
|
include "dms/outputs.kdl"
|
||||||
|
include "dms/colors.kdl"
|
||||||
|
include "dms/layout.kdl"
|
||||||
|
include "dms/alttab.kdl"
|
||||||
|
include "dms/binds.kdl"
|
||||||
|
include "dms/cursor.kdl"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,9 @@
|
|||||||
#useSystemVencord = false;
|
#useSystemVencord = false;
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
enabledThemes = [
|
||||||
|
"dank-discord.css"
|
||||||
|
];
|
||||||
plugins = {
|
plugins = {
|
||||||
alwaysTrust = {
|
alwaysTrust = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
250
dots/river.nix
250
dots/river.nix
@@ -1,250 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
window_manager,
|
|
||||||
systemName,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
wayland.windowManager.river = {
|
|
||||||
enable = window_manager == "river" || window_manager == "all";
|
|
||||||
xwayland.enable = true;
|
|
||||||
extraConfig = ''
|
|
||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#systemctl --user import-environment
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
|
||||||
#export SSH_AUTH_SOCK
|
|
||||||
browser="zen"
|
|
||||||
file_manager="dolphin"
|
|
||||||
terminal="footclient"
|
|
||||||
drunner="anyrun"
|
|
||||||
editor="emacs"
|
|
||||||
|
|
||||||
riverctl input "pointer-2362-8197-ASUP1204:00_093A:2005_Touchpad" tap enabled
|
|
||||||
riverctl keyboard-layout -options "grp:ctrl_space_toggle" ${
|
|
||||||
if systemName == "laptop" then "ie,us" else "us"
|
|
||||||
}
|
|
||||||
|
|
||||||
#riverctl spawn 'export XDG_CURRENT_DESKTOP=river'
|
|
||||||
#riverctl spawn 'systemctl --user restart xdg-desktop-portal'
|
|
||||||
riverctl spawn 'dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP'
|
|
||||||
riverctl spawn 'swaybg ${
|
|
||||||
# Handle laptop case
|
|
||||||
lib.optionalString (systemName == "laptop") "-o eDP-1 -i ${../assets/Wallpapers/138.png}"
|
|
||||||
}${
|
|
||||||
# Handle PC case (appends to laptop case if needed, but conditions should be mutually exclusive)
|
|
||||||
lib.optionalString (
|
|
||||||
systemName == "pc"
|
|
||||||
) "-o HDMI-A-1 -i ${../assets/Wallpapers/138.png} -o DP-1 -i ${../assets/Wallpapers/138.png}"
|
|
||||||
}'
|
|
||||||
#riverctl spawn '/home/mrfluffy/.config/script/mic-gain-fix.sh'
|
|
||||||
riverctl spawn 'waybar &'
|
|
||||||
#riverctl spawn '(hypridle &) && loginctl unlock-session'
|
|
||||||
#riverctl spawn '(sleep 10 && systemctl --user restart hypridle.service) &'
|
|
||||||
#riverctl spawn '/nix/store/$(ls -la /nix/store | grep "polkit-gnome" | grep "^d" | awk ""$0=$NF" | head -n 1)/libexec/polkit-gnome-authentication-agent-1'
|
|
||||||
riverctl spawn ' ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1'
|
|
||||||
riverctl spawn '/home/mrfluffy/.config/script/waylock.sh'
|
|
||||||
riverctl spawn 'fcitx5 -d'
|
|
||||||
riverctl spawn 'foot -s'
|
|
||||||
riverctl spawn '[ -n "$(whereis swaync | awk '{print $2}')" ] && swaync'
|
|
||||||
riverctl spawn 'nm-applet'
|
|
||||||
riverctl focus-follows-cursor normal
|
|
||||||
riverctl set-cursor-warp on-focus-change
|
|
||||||
#riverctl xcursor-theme oreo_spark_pink_cursors
|
|
||||||
riverctl spawn '${
|
|
||||||
# Handle laptop case
|
|
||||||
lib.optionalString (systemName == "laptop") "wlr-randr --output eDP-1 --mode 1920x1080@60"
|
|
||||||
}${
|
|
||||||
# Handle PC case (appends to laptop case if needed, but conditions should be mutually exclusive)
|
|
||||||
lib.optionalString (systemName == "pc")
|
|
||||||
"wlr-randr --output DP-1 --mode 2560x1440@144 --pos 1920,0 --output HDMI-A-1 --mode 1920x1080@60 --pos 0,0"
|
|
||||||
}'
|
|
||||||
|
|
||||||
# This is the example configuration file for river.
|
|
||||||
#
|
|
||||||
# If you wish to edit this, you will probably want to copy it to
|
|
||||||
# $XDG_CONFIG_HOME/river/init or $HOME/.config/river/init first.
|
|
||||||
#
|
|
||||||
# See the river(1), riverctl(1), and rivertile(1) man pages for complete
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
# Note: the "Mod4" modifier is also known as Logo, GUI, Windows, Mod4, etc.
|
|
||||||
#
|
|
||||||
riverctl map normal Mod1+Shift+Control L spawn way-inhibitor
|
|
||||||
|
|
||||||
# Mod4+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
|
|
||||||
riverctl map normal Mod1 Return spawn $terminal
|
|
||||||
|
|
||||||
# Mod4+D open wofi
|
|
||||||
riverctl map normal Mod1 D spawn $drunner
|
|
||||||
|
|
||||||
#Mod4+b open browser
|
|
||||||
riverctl map normal Mod1 B spawn $browser
|
|
||||||
|
|
||||||
#Mod1+F open file manager
|
|
||||||
riverctl map normal Mod1 F spawn $file_manager
|
|
||||||
|
|
||||||
#mod1+e open emacs
|
|
||||||
riverctl map normal Mod1 E spawn $editor
|
|
||||||
|
|
||||||
# Mod4+Q to close the focused view
|
|
||||||
riverctl map normal Mod1 Q close
|
|
||||||
|
|
||||||
# Mod4+Shift+E to exit river
|
|
||||||
riverctl map normal Mod1+Shift Q exit
|
|
||||||
|
|
||||||
# Mod4+J and Super+K to focus the next/previous view in the layout stack
|
|
||||||
riverctl map normal Mod1 J focus-view next
|
|
||||||
riverctl map normal Mod1 K focus-view previous
|
|
||||||
|
|
||||||
# Mod4+Shift+J and Super+Shift+K to swap the focused view with the next/previous
|
|
||||||
# view in the layout stack
|
|
||||||
riverctl map normal Mod1+Shift J swap next
|
|
||||||
riverctl map normal Mod1+Shift K swap previous
|
|
||||||
|
|
||||||
# Mod4+Period and Super+Comma to focus the next/previous output
|
|
||||||
riverctl map normal Mod1 L focus-output next
|
|
||||||
riverctl map normal Mod1 H focus-output previous
|
|
||||||
|
|
||||||
# Mod4+Shift+{Period,Comma} to send the focused view to the next/previous output
|
|
||||||
riverctl map normal Mod1+Shift L send-to-output next
|
|
||||||
riverctl map normal Mod1+Shift H send-to-output previous
|
|
||||||
|
|
||||||
# Mod4+Return to bump the focused view to the top of the layout stack
|
|
||||||
riverctl map normal Mod4 Return zoom
|
|
||||||
|
|
||||||
# Mod4+H and Super+L to decrease/increase the main ratio of rivertile(1)
|
|
||||||
riverctl map normal Mod1+Control H send-layout-cmd rivertile "main-ratio -0.05"
|
|
||||||
riverctl map normal Mod1+Control L send-layout-cmd rivertile "main-ratio +0.05"
|
|
||||||
|
|
||||||
# Mod4+Mod1+{H,J,K,L} to move views
|
|
||||||
riverctl map normal Mod4+Mod1 H move left 100
|
|
||||||
riverctl map normal Mod4+Mod1 J move down 100
|
|
||||||
riverctl map normal Mod4+Mod1 K move up 100
|
|
||||||
riverctl map normal Mod4+Mod1 L move right 100
|
|
||||||
|
|
||||||
# Mod4+Mod1+Control+{H,J,K,L} to snap views to screen edges
|
|
||||||
riverctl map normal Mod4+Mod1+Control H snap left
|
|
||||||
riverctl map normal Mod4+Mod1+Control J snap down
|
|
||||||
riverctl map normal Mod4+Mod1+Control K snap up
|
|
||||||
riverctl map normal Mod4+Mod1+Control L snap right
|
|
||||||
|
|
||||||
# Mod4+Mod1+Shif+{H,J,K,L} to resize views
|
|
||||||
riverctl map normal Mod4+Mod1+Shift H resize horizontal -100
|
|
||||||
riverctl map normal Mod4+Mod1+Shift J resize vertical 100
|
|
||||||
riverctl map normal Mod4+Mod1+Shift K resize vertical -100
|
|
||||||
riverctl map normal Mod4+Mod1+Shift L resize horizontal 100
|
|
||||||
|
|
||||||
# Mod4 + Left Mouse Button to move views
|
|
||||||
riverctl map-pointer normal Alt BTN_LEFT move-view
|
|
||||||
|
|
||||||
# Mod4 + Right Mouse Button to resize views
|
|
||||||
riverctl map-pointer normal Alt BTN_RIGHT resize-view
|
|
||||||
|
|
||||||
for i in $(seq 1 9); do
|
|
||||||
tags=$((1 << ($i - 1)))
|
|
||||||
|
|
||||||
# Mod4+[1-9] to focus tag [0-8]
|
|
||||||
riverctl map normal Mod1 $i set-focused-tags $tags
|
|
||||||
|
|
||||||
# Mod4+Shift+[1-9] to tag focused view with tag [0-8]
|
|
||||||
riverctl map normal Mod1+Shift $i set-view-tags $tags
|
|
||||||
|
|
||||||
# Mod4+Ctrl+[1-9] to toggle focus of tag [0-8]
|
|
||||||
riverctl map normal Mod1+Control $i toggle-focused-tags $tags
|
|
||||||
|
|
||||||
# Mod4+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
|
|
||||||
riverctl map normal Mod1+Shift+Control $i toggle-view-tags $tags
|
|
||||||
done
|
|
||||||
|
|
||||||
# Mod4+0 to focus all tags
|
|
||||||
# Mod4+Shift+0 to tag focused view with all tags
|
|
||||||
all_tags=$(((1 << 32) - 1))
|
|
||||||
riverctl map normal Mod4 0 set-focused-tags $all_tags
|
|
||||||
riverctl map normal Mod4+Shift 0 set-view-tags $all_tags
|
|
||||||
|
|
||||||
# Mod4+Space to toggle float
|
|
||||||
riverctl map normal Mod1 Space toggle-float
|
|
||||||
|
|
||||||
# Mod4+F to toggle fullscreen
|
|
||||||
riverctl map normal Mod1 t toggle-fullscreen
|
|
||||||
|
|
||||||
# Mod4+{Up,Right,Down,Left} to change layout orientation
|
|
||||||
riverctl map normal Mod4 Up send-layout-cmd rivertile "main-location top"
|
|
||||||
riverctl map normal Mod4 Right send-layout-cmd rivertile "main-location right"
|
|
||||||
riverctl map normal Mod4 Down send-layout-cmd rivertile "main-location bottom"
|
|
||||||
riverctl map normal Mod4 Left send-layout-cmd rivertile "main-location left"
|
|
||||||
|
|
||||||
# Declare a passthrough mode. This mode has only a single mapping to return to
|
|
||||||
# normal mode. This makes it useful for testing a nested wayland compositor
|
|
||||||
riverctl declare-mode passthrough
|
|
||||||
|
|
||||||
# Mod4+F11 to enter passthrough mode
|
|
||||||
riverctl map normal Mod4 F11 enter-mode passthrough
|
|
||||||
|
|
||||||
# Mod4+F11 to return to normal mode
|
|
||||||
riverctl map passthrough Mod4 F11 enter-mode normal
|
|
||||||
|
|
||||||
# Various media key mapping examples for both normal and locked mode which do
|
|
||||||
# not have a modifier
|
|
||||||
for mode in normal locked; do
|
|
||||||
# Eject the optical drive (well if you still have one that is)
|
|
||||||
riverctl map $mode None XF86Eject spawn 'eject -T'
|
|
||||||
|
|
||||||
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
|
|
||||||
riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
|
|
||||||
riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
|
|
||||||
riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
|
|
||||||
|
|
||||||
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
|
||||||
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
|
||||||
riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
|
|
||||||
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
|
|
||||||
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
|
|
||||||
#print screen
|
|
||||||
riverctl map $mode None Print spawn 'grim -g "$(slurp)" - | swappy -f -'
|
|
||||||
# Control screen backlight brighness with light (https://github.com/haikarainen/light)
|
|
||||||
riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 5'
|
|
||||||
riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 5'
|
|
||||||
done
|
|
||||||
|
|
||||||
#make a raw mode
|
|
||||||
riverctl declare-mode raw
|
|
||||||
riverctl map normal Mod1 r spawn 'riverctl enter-mode raw'
|
|
||||||
riverctl map raw Mod1 r spawn 'riverctl enter-mode normal'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Set background and border color
|
|
||||||
#riverctl background-color 0x002b36
|
|
||||||
#riverctl border-color-focused 0x8218c4
|
|
||||||
#riverctl border-color-unfocused 0xff282a36
|
|
||||||
#riverctl border-width 3
|
|
||||||
|
|
||||||
#set ssd for apps
|
|
||||||
riverctl rule-add ssd
|
|
||||||
|
|
||||||
# Set keyboard repeat rate
|
|
||||||
riverctl set-repeat 50 300
|
|
||||||
|
|
||||||
# Make certain views start floating
|
|
||||||
riverctl float-filter-add app-id float
|
|
||||||
riverctl float-filter-add title "popup title with spaces"
|
|
||||||
riverctl rule-add -title "Idle Inhibitor" float
|
|
||||||
# Set app-ids and titles of views which should use client side decorations
|
|
||||||
riverctl csd-filter-add app-id "gedit"
|
|
||||||
|
|
||||||
# Set and exec into the default layout generator, rivertile.
|
|
||||||
# River will send the process group of the init executable SIGTERM on exit.
|
|
||||||
riverctl default-layout rivertile
|
|
||||||
exec rivertile -view-padding 3 -outer-padding 3 -main-ratio 0.5
|
|
||||||
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
window_manager,
|
window_manager,
|
||||||
@@ -9,27 +10,6 @@
|
|||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
style = ''
|
style = ''
|
||||||
#tags button {
|
|
||||||
padding: 0 5px;
|
|
||||||
color: #f8f8f2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button.occupied {
|
|
||||||
color: inherit;
|
|
||||||
background-color: #6a548d
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#tags button.focused {
|
|
||||||
color: #f8f8f2;
|
|
||||||
background-color: #aa86e1 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button.urgent {
|
|
||||||
color: #ea6962;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode {
|
#mode {
|
||||||
background: #64727D;
|
background: #64727D;
|
||||||
border-bottom: 3px solid #f8f8f2;
|
border-bottom: 3px solid #f8f8f2;
|
||||||
@@ -119,17 +99,15 @@
|
|||||||
spacing = 4; # Gaps between modules (4px)
|
spacing = 4; # Gaps between modules (4px)
|
||||||
# Choose the order of the modules
|
# Choose the order of the modules
|
||||||
modules-left =
|
modules-left =
|
||||||
if window_manager == "river" then
|
if window_manager == "hyprland"
|
||||||
[
|
then [
|
||||||
"river/tags"
|
"hyprland/workspaces"
|
||||||
"custom/media"
|
]
|
||||||
]
|
else if window_manager == "niri"
|
||||||
else if window_manager == "hyprland" then
|
then [
|
||||||
[
|
"niri/workspaces"
|
||||||
"hyprland/workspaces"
|
]
|
||||||
]
|
else [ ];
|
||||||
else
|
|
||||||
[ ];
|
|
||||||
modules-center = [
|
modules-center = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -182,20 +160,6 @@
|
|||||||
sort-by-name = true;
|
sort-by-name = true;
|
||||||
all-outputs = true;
|
all-outputs = true;
|
||||||
};
|
};
|
||||||
"river/tags" = {
|
|
||||||
num-tags = 9;
|
|
||||||
tag-labels = [
|
|
||||||
"一"
|
|
||||||
"二"
|
|
||||||
"三"
|
|
||||||
"四"
|
|
||||||
"五"
|
|
||||||
"六"
|
|
||||||
"七"
|
|
||||||
"八"
|
|
||||||
"九"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
keyboard-state = {
|
keyboard-state = {
|
||||||
numlock = true;
|
numlock = true;
|
||||||
capslock = true;
|
capslock = true;
|
||||||
|
|||||||
95
dots/xdg.nix
95
dots/xdg.nix
@@ -14,21 +14,24 @@
|
|||||||
portal = {
|
portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
config.common.default = [
|
config = {
|
||||||
"hyprland;kde"
|
common.default = [ "gtk" ];
|
||||||
"river"
|
} // lib.optionalAttrs (window_manager == "hyprland" || window_manager == "all") {
|
||||||
"kde"
|
hyprland.default = [ "hyprland" "gtk" ];
|
||||||
"gtk"
|
} // lib.optionalAttrs (window_manager == "niri" || window_manager == "all") {
|
||||||
];
|
niri.default = [ "gnome" "gtk" ];
|
||||||
|
};
|
||||||
|
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
|
|
||||||
extraPortals = with pkgs; [
|
extraPortals = with pkgs;
|
||||||
xdg-desktop-portal-wlr
|
[ xdg-desktop-portal-gtk ]
|
||||||
xdg-desktop-portal-gtk
|
++ lib.optionals (window_manager == "hyprland" || window_manager == "all") [
|
||||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
|
||||||
kdePackages.xdg-desktop-portal-kde
|
]
|
||||||
];
|
++ lib.optionals (window_manager == "niri" || window_manager == "all") [
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
mime.enable = true;
|
mime.enable = true;
|
||||||
@@ -38,40 +41,40 @@
|
|||||||
|
|
||||||
defaultApplications =
|
defaultApplications =
|
||||||
let
|
let
|
||||||
browser = [ "firefox.desktop" ];
|
browser = [ "firefox.desktop" ];
|
||||||
fileManager = [ "pcmanfm.desktop" ];
|
fileManager = [ "pcmanfm.desktop" ];
|
||||||
editor = [ "emacs.desktop" ];
|
editor = [ "emacs.desktop" ];
|
||||||
player = [ "mpv.desktop" ];
|
player = [ "mpv.desktop" ];
|
||||||
viewer = [ "imv-dir.desktop" ];
|
viewer = [ "imv-dir.desktop" ];
|
||||||
reader = [ "org.pwmt.zathura.desktop" ];
|
reader = [ "org.pwmt.zathura.desktop" ];
|
||||||
in {
|
in {
|
||||||
# Documents
|
# Documents
|
||||||
"application/pdf" = reader;
|
"application/pdf" = reader;
|
||||||
"application/epub" = reader;
|
"application/epub" = reader;
|
||||||
|
|
||||||
# Text / markup
|
# Text / markup
|
||||||
"text/plain" = editor;
|
"text/plain" = editor;
|
||||||
"application/x-wine-extension-ini" = editor;
|
"application/x-wine-extension-ini" = editor;
|
||||||
"text/html" = browser;
|
"text/html" = browser;
|
||||||
"text/xml" = browser;
|
"text/xml" = browser;
|
||||||
|
|
||||||
# Web / XML-ish
|
# Web / XML-ish
|
||||||
"application/json" = browser;
|
"application/json" = browser;
|
||||||
"application/xml" = browser;
|
"application/xml" = browser;
|
||||||
"application/xhtml+xml" = browser;
|
"application/xhtml+xml" = browser;
|
||||||
"application/xhtml_xml" = browser;
|
"application/xhtml_xml" = browser;
|
||||||
"application/rdf+xml" = browser;
|
"application/rdf+xml" = browser;
|
||||||
"application/rss+xml" = browser;
|
"application/rss+xml" = browser;
|
||||||
"application/x-extension-htm" = browser;
|
"application/x-extension-htm" = browser;
|
||||||
"application/x-extension-html" = browser;
|
"application/x-extension-html" = browser;
|
||||||
"application/x-extension-shtml" = browser;
|
"application/x-extension-shtml" = browser;
|
||||||
"application/x-extension-xht" = browser;
|
"application/x-extension-xht" = browser;
|
||||||
"application/x-extension-xhtml" = browser;
|
"application/x-extension-xhtml" = browser;
|
||||||
|
|
||||||
# URL schemes
|
# URL schemes
|
||||||
"x-scheme-handler/about" = browser;
|
"x-scheme-handler/about" = browser;
|
||||||
"x-scheme-handler/ftp" = browser;
|
"x-scheme-handler/ftp" = browser;
|
||||||
"x-scheme-handler/http" = browser;
|
"x-scheme-handler/http" = browser;
|
||||||
"x-scheme-handler/https" = browser;
|
"x-scheme-handler/https" = browser;
|
||||||
|
|
||||||
# Files / directories
|
# Files / directories
|
||||||
@@ -80,20 +83,20 @@
|
|||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
"audio/mpeg" = player;
|
"audio/mpeg" = player;
|
||||||
"audio/aac" = player;
|
"audio/aac" = player;
|
||||||
"audio/flac" = player;
|
"audio/flac" = player;
|
||||||
"audio/wav" = player;
|
"audio/wav" = player;
|
||||||
|
|
||||||
# Video
|
# Video
|
||||||
"video/mp4" = player;
|
"video/mp4" = player;
|
||||||
"video/vnd.mpegurl" = player;
|
"video/vnd.mpegurl" = player;
|
||||||
"video/x-matroska" = player;
|
"video/x-matroska" = player;
|
||||||
"application/x-mpegURL" = player;
|
"application/x-mpegURL" = player;
|
||||||
|
|
||||||
# Images
|
# Images
|
||||||
"image/gif" = viewer;
|
"image/gif" = viewer;
|
||||||
"image/jpeg" = viewer;
|
"image/jpeg" = viewer;
|
||||||
"image/png" = viewer;
|
"image/png" = viewer;
|
||||||
"image/webp" = viewer;
|
"image/webp" = viewer;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -102,13 +105,13 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
createDirectories = true;
|
createDirectories = true;
|
||||||
|
|
||||||
download = "${config.home.homeDirectory}/Downloads";
|
download = "${config.home.homeDirectory}/Downloads";
|
||||||
documents = "${config.home.homeDirectory}/Documents";
|
documents = "${config.home.homeDirectory}/Documents";
|
||||||
desktop = "${config.home.homeDirectory}/Desktop";
|
desktop = "${config.home.homeDirectory}/Desktop";
|
||||||
videos = "${config.home.homeDirectory}/Videos";
|
videos = "${config.home.homeDirectory}/Videos";
|
||||||
pictures = "${config.home.homeDirectory}/Pictures";
|
pictures = "${config.home.homeDirectory}/Pictures";
|
||||||
music = "${config.home.homeDirectory}/Music";
|
music = "${config.home.homeDirectory}/Music";
|
||||||
templates = "${config.home.homeDirectory}/.local/share/templates";
|
templates = "${config.home.homeDirectory}/.local/share/templates";
|
||||||
publicShare = "${config.home.homeDirectory}/.local/share/public";
|
publicShare = "${config.home.homeDirectory}/.local/share/public";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
90
dots/zsh.nix
90
dots/zsh.nix
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dotDir = "${config.xdg.configHome}/zsh";
|
dotDir = "${config.xdg.configHome}/zsh";
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
# pkgs.zsh-autosuggestions
|
# pkgs.zsh-autosuggestions
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
autosuggestion = {
|
autosuggestion = {
|
||||||
enable = true;
|
enable = true;
|
||||||
highlight = "fg=#64677a,bold,underline";
|
highlight = "fg=#64677a,bold,underline";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -24,51 +24,50 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
LD_LIBRARY_PATH = "/run/current-system/sw/share/nix-ld/lib";
|
LD_LIBRARY_PATH = "/run/current-system/sw/share/nix-ld/lib";
|
||||||
HISTSIZE = 3000;
|
HISTSIZE = 3000;
|
||||||
SAVEHIST = 3000;
|
SAVEHIST = 3000;
|
||||||
CARGO_HOME = "$XDG_DATA_HOME/cargo";
|
CARGO_HOME = "$XDG_DATA_HOME/cargo";
|
||||||
GNUPGHOME = "$XDG_DATA_HOME/gnupg";
|
GNUPGHOME = "$XDG_DATA_HOME/gnupg";
|
||||||
GOPATH = "$XDG_DATA_HOME/go";
|
GOPATH = "$XDG_DATA_HOME/go";
|
||||||
GRADLE_USER_HOME = "$XDG_DATA_HOME/gradle";
|
GRADLE_USER_HOME = "$XDG_DATA_HOME/gradle";
|
||||||
IPYTHONDIR = "$XDG_CONFIG_HOME/ipython";
|
IPYTHONDIR = "$XDG_CONFIG_HOME/ipython";
|
||||||
JUPYTER_CONFIG_DIR = "$XDG_CONFIG_HOME/jupyter";
|
JUPYTER_CONFIG_DIR = "$XDG_CONFIG_HOME/jupyter";
|
||||||
LESSHISTFILE = "$XDG_CACHE_HOME/less/history";
|
LESSHISTFILE = "$XDG_CACHE_HOME/less/history";
|
||||||
NUGET_PACKAGES = "$XDG_CACHE_HOME/NuGetPackages";
|
NUGET_PACKAGES = "$XDG_CACHE_HOME/NuGetPackages";
|
||||||
PYTHONSTARTUP = "$XDG_CONFIG_HOME/python/pythonrc";
|
PYTHONSTARTUP = "$XDG_CONFIG_HOME/python/pythonrc";
|
||||||
KERAS_HOME = "$XDG_STATE_HOME/keras";
|
KERAS_HOME = "$XDG_STATE_HOME/keras";
|
||||||
RUSTUP_HOME = "$XDG_DATA_HOME/rustup";
|
RUSTUP_HOME = "$XDG_DATA_HOME/rustup";
|
||||||
XCOMPOSECACHE = "$XDG_CACHE_HOME/X11/xcompose";
|
XCOMPOSECACHE = "$XDG_CACHE_HOME/X11/xcompose";
|
||||||
SSB_HOME = "$XDG_DATA_HOME/zoom";
|
SSB_HOME = "$XDG_DATA_HOME/zoom";
|
||||||
HISTFILE = "$XDG_STATE_HOME/zsh/history";
|
HISTFILE = "$XDG_STATE_HOME/zsh/history";
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ns = "nh os switch --specialisation 00-main-system";
|
ns = "nh os switch --specialisation 00-main-system";
|
||||||
nu = "(cd ~/nixos-dots && nix flake update --commit-lock-file) && echo 'flake.lock updated'";
|
nu = "(cd ~/nixos-dots && nix flake update --commit-lock-file) && echo 'flake.lock updated'";
|
||||||
ne = "emacsclient -c ~/nixos-dots/configuration.nix";
|
ne = "emacsclient -c ~/nixos-dots/configuration.nix";
|
||||||
|
|
||||||
ls = "exa -lag --icons";
|
ls = "exa -lag --icons";
|
||||||
upload = "~/.config/script/upload.sh";
|
upload = "~/.config/script/upload.sh";
|
||||||
record = "~/.config/script/record.sh";
|
record = "~/.config/script/record.sh";
|
||||||
speak = "~/.config/script/wisper.sh";
|
speak = "~/.config/script/wisper.sh";
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
anime = "~/repos/ani-cli/ani-cli";
|
anime = "~/repos/ani-cli/ani-cli";
|
||||||
hentai = "~/repos/and-scripts/fap-cli";
|
hentai = "~/repos/and-scripts/fap-cli";
|
||||||
manga = "manga-cli";
|
manga = "manga-cli";
|
||||||
yt = "~/repos/ytfzf/ytfzf --thumb-viewer='kitty' -t";
|
yt = "~/repos/ytfzf/ytfzf --thumb-viewer='kitty' -t";
|
||||||
cd = "z";
|
cd = "z";
|
||||||
rm = "rip";
|
rm = "rip";
|
||||||
df = "duf";
|
df = "duf";
|
||||||
time = "hyperfine";
|
time = "hyperfine";
|
||||||
kami = "~/Documents/Rust/kami/target/release/kami";
|
kami = "~/Documents/Rust/kami/target/release/kami";
|
||||||
calc = "cpc";
|
calc = "cpc";
|
||||||
pdf = "mupdf";
|
pdf = "mupdf";
|
||||||
emacs = "emacs";
|
emacs = "emacs";
|
||||||
river = "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river && river";
|
cp = "xcp";
|
||||||
cp = "xcp";
|
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
||||||
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
initContent = ''
|
initContent = ''
|
||||||
@@ -78,7 +77,6 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
${lib.getExe pkgs.macchina}
|
|
||||||
nixdev() {
|
nixdev() {
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Usage: nixdev <language>"
|
echo "Usage: nixdev <language>"
|
||||||
|
|||||||
454
flake.lock
generated
454
flake.lock
generated
@@ -20,11 +20,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767024902,
|
"lastModified": 1772292445,
|
||||||
"narHash": "sha256-sMdk6QkMDhIOnvULXKUM8WW8iyi551SWw2i6KQHbrrU=",
|
"narHash": "sha256-4F1Q7U313TKUDDovCC96m/Za4wZcJ3yqtu4eSrj8lk8=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "aquamarine",
|
"repo": "aquamarine",
|
||||||
"rev": "b8a0c5ba5a9fbd2c660be7dd98bdde0ff3798556",
|
"rev": "1dbbba659c1cef0b0202ce92cadfe13bae550e8f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -124,11 +124,11 @@
|
|||||||
"quickshell": "quickshell"
|
"quickshell": "quickshell"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767490542,
|
"lastModified": 1773328492,
|
||||||
"narHash": "sha256-NkwDCzDC5soGuAE4k8YuvdzYOi7ugrBjUxavKwmFoUM=",
|
"narHash": "sha256-ajjfsBnYR54VHhh/haYuPqBOyvgerlvYK6kZvmt2GRw=",
|
||||||
"owner": "caelestia-dots",
|
"owner": "caelestia-dots",
|
||||||
"repo": "shell",
|
"repo": "shell",
|
||||||
"rev": "1b4b90a3ad9532f7002ef2593d8efb68443f21f3",
|
"rev": "d97ba8a9c08bc931261766b1070bce610e7cb22e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -148,11 +148,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767320190,
|
"lastModified": 1772764582,
|
||||||
"narHash": "sha256-HXi1ED3ub/7yn3SEUw8641dLMFuxRlcMs/RgIbU91I8=",
|
"narHash": "sha256-hSwjmpXHFqzSXrndVekA0IheKrbC7wi0IbfZTYwlmXw=",
|
||||||
"owner": "caelestia-dots",
|
"owner": "caelestia-dots",
|
||||||
"repo": "cli",
|
"repo": "cli",
|
||||||
"rev": "337c711371e070fa28c2e55fffc5b0115a7cf40b",
|
"rev": "4bcd42f482d038b98145b0b03388244b68b7d35d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -167,11 +167,11 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767751792,
|
"lastModified": 1773052604,
|
||||||
"narHash": "sha256-9aevqBizkmywn0buASzLCNOwY/Wm6tq9FpaPrRgZ/KQ=",
|
"narHash": "sha256-jYm0ejWPH2RkfehuPB/sLUGp8Nu0Sx9JhEYThctWbwo=",
|
||||||
"owner": "caelestia-dots",
|
"owner": "caelestia-dots",
|
||||||
"repo": "cli",
|
"repo": "cli",
|
||||||
"rev": "55d75a117540e37263ac450ed7c40cc2212b5e3c",
|
"rev": "c930bd26045f1f86faa4e19dd082aec5e1754a83",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -192,11 +192,11 @@
|
|||||||
"quickshell": "quickshell_2"
|
"quickshell": "quickshell_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767490542,
|
"lastModified": 1772962569,
|
||||||
"narHash": "sha256-NkwDCzDC5soGuAE4k8YuvdzYOi7ugrBjUxavKwmFoUM=",
|
"narHash": "sha256-ctRw4pVgx0IYKfA2hy90Ku37pnVX2T4q57UWp+l69fs=",
|
||||||
"owner": "caelestia-dots",
|
"owner": "caelestia-dots",
|
||||||
"repo": "shell",
|
"repo": "shell",
|
||||||
"rev": "1b4b90a3ad9532f7002ef2593d8efb68443f21f3",
|
"rev": "e183599ce9e2c8d30a14631d53eb9947220c0812",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -212,11 +212,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765838956,
|
"lastModified": 1771868032,
|
||||||
"narHash": "sha256-A3a2ZfvjirX8VIdIPI+nAyukWs6vx4vet3fU0mpr7lU=",
|
"narHash": "sha256-l8+LOd+QJuapv/21+juetZeedrlYY1QNXwcI27ACgiI=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "dgop",
|
"repo": "dgop",
|
||||||
"rev": "0ff697a4e3418966caa714c838fc73f1ef6ba59b",
|
"rev": "361b4f7041cd27381ee3eeb36774faf10747e0c3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -233,11 +233,11 @@
|
|||||||
"quickshell": "quickshell_3"
|
"quickshell": "quickshell_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767813183,
|
"lastModified": 1773369326,
|
||||||
"narHash": "sha256-4tLYqLiLZqI7xmhNBi5zyGkaAXZJNUtGuxWzA7NJf8A=",
|
"narHash": "sha256-SL0b/9q8n0/VqhIeMkDPqLZ+UgQ5yAps3WpPu1+aZS8=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "DankMaterialShell",
|
"repo": "DankMaterialShell",
|
||||||
"rev": "3dd21382bad5d43604850e257cfd1b8d35e16fb9",
|
"rev": "e86227f05fd3bf133c2cd73eecfa8c1cd6a00dc0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -249,11 +249,11 @@
|
|||||||
"firefox-gnome-theme": {
|
"firefox-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764724327,
|
"lastModified": 1764873433,
|
||||||
"narHash": "sha256-OkFLrD3pFR952TrjQi1+Vdj604KLcMnkpa7lkW7XskI=",
|
"narHash": "sha256-1XPewtGMi+9wN9Ispoluxunw/RwozuTRVuuQOmxzt+A=",
|
||||||
"owner": "rafaelmardojai",
|
"owner": "rafaelmardojai",
|
||||||
"repo": "firefox-gnome-theme",
|
"repo": "firefox-gnome-theme",
|
||||||
"rev": "66b7c635763d8e6eb86bd766de5a1e1fbfcc1047",
|
"rev": "f7ffd917ac0d253dbd6a3bf3da06888f57c69f92",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -280,11 +280,11 @@
|
|||||||
},
|
},
|
||||||
"flake-compat_2": {
|
"flake-compat_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761588595,
|
"lastModified": 1767039857,
|
||||||
"narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -312,11 +312,11 @@
|
|||||||
"nixpkgs-lib": "nixpkgs-lib_2"
|
"nixpkgs-lib": "nixpkgs-lib_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765835352,
|
"lastModified": 1772408722,
|
||||||
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
|
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "a34fae9c08a15ad73f295041fec82323541400a9",
|
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -333,11 +333,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763759067,
|
"lastModified": 1767609335,
|
||||||
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
|
"narHash": "sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
|
"rev": "250481aafeb741edfe23d29195671c19b36b6dca",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -388,11 +388,11 @@
|
|||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"host": "gitlab.gnome.org",
|
"host": "gitlab.gnome.org",
|
||||||
"lastModified": 1764524476,
|
"lastModified": 1767737596,
|
||||||
"narHash": "sha256-bTmNn3Q4tMQ0J/P0O5BfTQwqEnCiQIzOGef9/aqAZvk=",
|
"narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"rev": "c0e1ad9f0f703fd0519033b8f46c3267aab51a22",
|
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -410,11 +410,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767811801,
|
"lastModified": 1773367248,
|
||||||
"narHash": "sha256-QICeGwbXfqtaOZmgh6BrSBB72drPuHO3pjuyh+x8eIY=",
|
"narHash": "sha256-FFMc1uAwy2GYasd0rdNDVxKyAgzuoJH2M+GglBQbqf0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c068188a8e5c277f7bc8671557a7568864b57515",
|
"rev": "be0c641a6a5564caa33982faa1fe2c60d92131c7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -468,11 +468,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766946335,
|
"lastModified": 1770511807,
|
||||||
"narHash": "sha256-MRD+Jr2bY11MzNDfenENhiK6pvN+nHygxdHoHbZ1HtE=",
|
"narHash": "sha256-suKmSbSk34uPOJDTg/GbPrKEJutzK08vj0VoTvAFBCA=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprgraphics",
|
"repo": "hyprgraphics",
|
||||||
"rev": "4af02a3925b454deb1c36603843da528b67ded6c",
|
"rev": "7c75487edd43a71b61adb01cae8326d277aab683",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -492,19 +492,17 @@
|
|||||||
"hyprutils": "hyprutils",
|
"hyprutils": "hyprutils",
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
"hyprwire": "hyprwire",
|
"hyprwire": "hyprwire",
|
||||||
"nixpkgs": [
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"pre-commit-hooks": "pre-commit-hooks",
|
"pre-commit-hooks": "pre-commit-hooks",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767812022,
|
"lastModified": 1773316626,
|
||||||
"narHash": "sha256-BHBiQhlNl+Lxvp/bBOOTWhxbXYMoVG4xiyv9DE/nuZ4=",
|
"narHash": "sha256-BrDGYt2w2tSkCvjMtgcVGIAp3FWsV5Ycl4ongLZ/fLk=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "918e2bb9be0e1d233f9394f1d569137788c43c01",
|
"rev": "e8684034525829d58054c32da914d1713398fbb8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -567,11 +565,11 @@
|
|||||||
"nix-filter": "nix-filter"
|
"nix-filter": "nix-filter"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767711026,
|
"lastModified": 1773341024,
|
||||||
"narHash": "sha256-yTuyde8TpBR3NhNnOcK4uOGukvMCwrH3otP8E04e9X0=",
|
"narHash": "sha256-9YZntjxs/M51VEIvg/vO76GMi9FF/gNYu5h9bXPGnXw=",
|
||||||
"owner": "Duckonaut",
|
"owner": "Duckonaut",
|
||||||
"repo": "split-monitor-workspaces",
|
"repo": "split-monitor-workspaces",
|
||||||
"rev": "764548c3aa22c9f4cb436ec7243d21795eb6ebec",
|
"rev": "34c266b732d8a063213098dc88369ac88b95dfa1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -597,11 +595,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767723101,
|
"lastModified": 1771865848,
|
||||||
"narHash": "sha256-jObY8O7OI+91hoE137APsDxm0235/Yx+HhFIip187zM=",
|
"narHash": "sha256-xwNa+1D8WPsDnJtUofDrtyDCZKZotbUymzV/R5s+M0I=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprland-plugins",
|
"repo": "hyprland-plugins",
|
||||||
"rev": "fef398ed5e4faf59bc43b915e46a75cfe8b16697",
|
"rev": "b85a56b9531013c79f2f3846fd6ee2ff014b8960",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -651,11 +649,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764612430,
|
"lastModified": 1771866172,
|
||||||
"narHash": "sha256-54ltTSbI6W+qYGMchAgCR6QnC1kOdKXN6X6pJhOWxFg=",
|
"narHash": "sha256-fYFoXhQLrm1rD8vSFKQBOEX4OGCuJdLt1amKfHd5GAw=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprlang",
|
||||||
"rev": "0d00dc118981531aa731150b6ea551ef037acddd",
|
"rev": "0b219224910e7642eb0ed49f0db5ec3d008e3e41",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -728,11 +726,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766253372,
|
"lastModified": 1771271487,
|
||||||
"narHash": "sha256-1+p4Kw8HdtMoFSmJtfdwjxM4bPxDK9yg27SlvUMpzWA=",
|
"narHash": "sha256-41gEiUS0Pyw3L/ge1l8MXn61cK14VAhgWB/JV8s/oNI=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprutils",
|
"repo": "hyprutils",
|
||||||
"rev": "51a4f93ce8572e7b12b7284eb9e6e8ebf16b4be9",
|
"rev": "340a792e3b3d482c4ae5f66d27a9096bdee6d76d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -753,11 +751,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763640274,
|
"lastModified": 1770501770,
|
||||||
"narHash": "sha256-Uan1Nl9i4TF/kyFoHnTq1bd/rsWh4GAK/9/jDqLbY5A=",
|
"narHash": "sha256-NWRM6+YxTRv+bT9yvlhhJ2iLae1B1pNH3mAL5wi2rlQ=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwayland-scanner",
|
"repo": "hyprwayland-scanner",
|
||||||
"rev": "f6cf414ca0e16a4d30198fd670ec86df3c89f671",
|
"rev": "0bd8b6cde9ec27d48aad9e5b4deefb3746909d40",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -782,11 +780,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767473322,
|
"lastModified": 1771606233,
|
||||||
"narHash": "sha256-RGOeG+wQHeJ6BKcsSB8r0ZU77g9mDvoQzoTKj2dFHwA=",
|
"narHash": "sha256-F3PLUqQ/TwgR70U+UeOqJnihJZ2EuunzojYC4g5xHr0=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwire",
|
"repo": "hyprwire",
|
||||||
"rev": "d5e7d6b49fe780353c1cf9a1cf39fa8970bd9d11",
|
"rev": "06c7f1f8c4194786c8400653c4efc49dc14c0f3a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -803,11 +801,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767777502,
|
"lastModified": 1773380813,
|
||||||
"narHash": "sha256-jXb2kBU6lO6Q6S9zoR/bhVLMjg2hM9EW8gWIwsmkj64=",
|
"narHash": "sha256-6GDKki2AIkWgnnTGA1enQB3I1mI6rdPe4rrXafmmIiY=",
|
||||||
"owner": "Jovian-Experiments",
|
"owner": "Jovian-Experiments",
|
||||||
"repo": "Jovian-NixOS",
|
"repo": "Jovian-NixOS",
|
||||||
"rev": "a81fad3f4a70fdaa779e74b7da2063fa2e358028",
|
"rev": "8347eae3a900c26b8223ee98697f30f4e88dc226",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -816,6 +814,62 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"niri": {
|
||||||
|
"inputs": {
|
||||||
|
"niri-stable": "niri-stable",
|
||||||
|
"niri-unstable": "niri-unstable",
|
||||||
|
"nixpkgs": "nixpkgs_4",
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
|
"xwayland-satellite-stable": "xwayland-satellite-stable",
|
||||||
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773390002,
|
||||||
|
"narHash": "sha256-0RVjh9h0sgPHngxEs/Wd2/xdGsgKgZWjxFu5JsX3ASw=",
|
||||||
|
"owner": "sodiboo",
|
||||||
|
"repo": "niri-flake",
|
||||||
|
"rev": "adc63b19724247f947385381481effd225a6e2fc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "sodiboo",
|
||||||
|
"repo": "niri-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"niri-stable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1756556321,
|
||||||
|
"narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=",
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"repo": "niri",
|
||||||
|
"rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"ref": "v25.08",
|
||||||
|
"repo": "niri",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"niri-unstable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773130184,
|
||||||
|
"narHash": "sha256-3bwx4WqCB06yfQIGB+OgIckOkEDyKxiTD5pOo4Xz2rI=",
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"repo": "niri",
|
||||||
|
"rev": "b07bde3ee82dd73115e6b949e4f3f63695da35ea",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"repo": "niri",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-alien": {
|
"nix-alien": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
@@ -825,11 +879,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765855559,
|
"lastModified": 1771150922,
|
||||||
"narHash": "sha256-AUT31hDJliW0fK9G7tfTEDD2me4rIXbBXPu1lf0mVHs=",
|
"narHash": "sha256-+oQJun4CFDlOQRocbZpqQDj7agoy56/4ZjT1oUR7NOs=",
|
||||||
"owner": "thiagokokada",
|
"owner": "thiagokokada",
|
||||||
"repo": "nix-alien",
|
"repo": "nix-alien",
|
||||||
"rev": "0eb86c42d1e33e8dbcf771cb67446319517a0a57",
|
"rev": "96045e886ba0dd45b27590e7c0c6e77bbb54033d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -902,11 +956,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762660502,
|
"lastModified": 1771130777,
|
||||||
"narHash": "sha256-C9F1C31ys0V7mnp4EcDy7L1cLZw/sCTEXqqTtGnvu08=",
|
"narHash": "sha256-UIKOwG0D9XVIJfNWg6+gENAvQP+7LO46eO0Jpe+ItJ0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "15c5451c63f4c612874a43846bfe3fa828b03eee",
|
"rev": "efec7aaad8d43f8e5194df46a007456093c40f88",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -922,11 +976,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765267181,
|
"lastModified": 1772945408,
|
||||||
"narHash": "sha256-d3NBA9zEtBu2JFMnTBqWj7Tmi7R5OikoU2ycrdhQEws=",
|
"narHash": "sha256-PMt48sEQ8cgCeljQ9I/32uoBq/8t8y+7W/nAZhf72TQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "82befcf7dc77c909b0f2a09f5da910ec95c5b78f",
|
"rev": "1c1d8ea87b047788fd7567adf531418c5da321ec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -941,14 +995,15 @@
|
|||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
],
|
||||||
|
"nixpkgs-nixcord": "nixpkgs-nixcord"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767772998,
|
"lastModified": 1773405207,
|
||||||
"narHash": "sha256-uW5BgnDOn41rlKn1JxdN7CU4bbOgZf+axEw8pBVP6RU=",
|
"narHash": "sha256-UU3Xgx/Obut7UXxaUTvSpMLRaiILke58YxVi3uwIabo=",
|
||||||
"owner": "kaylorben",
|
"owner": "kaylorben",
|
||||||
"repo": "nixcord",
|
"repo": "nixcord",
|
||||||
"rev": "d9f83906a12678900b2b36c3bdf7329e8efaa0c0",
|
"rev": "385319687272381cfa306a4bbf8c0b958ad065f7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -959,11 +1014,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767379071,
|
"lastModified": 1772773019,
|
||||||
"narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
|
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fb7944c166a3b630f177938e478f0378e64ce108",
|
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -990,11 +1045,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-lib_2": {
|
"nixpkgs-lib_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1765674936,
|
"lastModified": 1772328832,
|
||||||
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
|
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85",
|
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1003,13 +1058,45 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-nixcord": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773222311,
|
||||||
|
"narHash": "sha256-BHoB/XpbqoZkVYZCfXJXfkR+GXFqwb/4zbWnOr2cRcU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "0590cd39f728e129122770c029970378a79d076a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-25.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1773222311,
|
||||||
|
"narHash": "sha256-BHoB/XpbqoZkVYZCfXJXfkR+GXFqwb/4zbWnOr2cRcU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "0590cd39f728e129122770c029970378a79d076a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-25.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767640445,
|
"lastModified": 1772773019,
|
||||||
"narHash": "sha256-UWYqmD7JFBEDBHWYcqE6s6c77pWdcU/i+bwD6XxMb8A=",
|
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5",
|
"rev": "aca4d95fce4914b3892661bcb80b8087293536c6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1021,15 +1108,15 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767767207,
|
"lastModified": 1772198003,
|
||||||
"narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
|
"narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
|
"rev": "dd9b079222d43e1943b6ebd802f04fd959dc8e61",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
@@ -1037,11 +1124,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766651565,
|
"lastModified": 1773282481,
|
||||||
"narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=",
|
"narHash": "sha256-b/GV2ysM8mKHhinse2wz+uP37epUrSE+sAKXy/xvBY4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539",
|
"rev": "fe416aaedd397cacb33a610b33d60ff2b431b127",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1053,11 +1140,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762111121,
|
"lastModified": 1773282481,
|
||||||
"narHash": "sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw=",
|
"narHash": "sha256-b/GV2ysM8mKHhinse2wz+uP37epUrSE+sAKXy/xvBY4=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "fe416aaedd397cacb33a610b33d60ff2b431b127",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_6": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767767207,
|
||||||
|
"narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b3d51a0365f6695e7dd5cdf3e180604530ed33b4",
|
"rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1079,11 +1182,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764773531,
|
"lastModified": 1767810917,
|
||||||
"narHash": "sha256-mCBl7MD1WZ7yCG6bR9MmpPO2VydpNkWFgnslJRIT1YU=",
|
"narHash": "sha256-ZKqhk772+v/bujjhla9VABwcvz+hB2IaRyeLT6CFnT0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "1d9616689e98beded059ad0384b9951e967a17fa",
|
"rev": "dead29c804adc928d3a69dfe7f9f12d0eec1f1a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1102,11 +1205,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767281941,
|
"lastModified": 1772024342,
|
||||||
"narHash": "sha256-6MkqajPICgugsuZ92OMoQcgSHnD6sJHwk8AxvMcIgTE=",
|
"narHash": "sha256-+eXlIc4/7dE6EcPs9a2DaSY3fTA9AE526hGqkNID3Wg=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "f0927703b7b1c8d97511c4116eb9b4ec6645a0fa",
|
"rev": "6e34e97ed9788b17796ee43ccdbaf871a5c2b476",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1122,11 +1225,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1730724501,
|
"lastModified": 1767942797,
|
||||||
"narHash": "sha256-zvNdomPM86fUf0iAwJV1RQC8yAqDCKbCDJKIs4iIPy0=",
|
"narHash": "sha256-ypny6yOP3Buh7UBmETW3R/el3nHdzYNOCMhVnCdm9U4=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "8f897ffb4a1575252c536c63db8be72f22b6a494",
|
"rev": "8bdd6351a130f8ed8fe13c9ec87ed965c4d9912b",
|
||||||
"revCount": 1,
|
"revCount": 2,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.outfoxxed.me/outfoxxed/nix-qml-support"
|
"url": "https://git.outfoxxed.me/outfoxxed/nix-qml-support"
|
||||||
},
|
},
|
||||||
@@ -1143,11 +1246,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766725085,
|
"lastModified": 1772925576,
|
||||||
"narHash": "sha256-O2aMFdDUYJazFrlwL7aSIHbUSEm3ADVZjmf41uBJfHs=",
|
"narHash": "sha256-mMoiXABDtkSJxCYDrkhJ/TrrJf5M46oUfIlJvv2gkZ0=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "41828c4180fb921df7992a5405f5ff05d2ac2fff",
|
"rev": "15a84097653593dd15fad59a56befc2b7bdc270d",
|
||||||
"revCount": 715,
|
"revCount": 750,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
},
|
},
|
||||||
@@ -1165,11 +1268,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766725085,
|
"lastModified": 1772925576,
|
||||||
"narHash": "sha256-O2aMFdDUYJazFrlwL7aSIHbUSEm3ADVZjmf41uBJfHs=",
|
"narHash": "sha256-mMoiXABDtkSJxCYDrkhJ/TrrJf5M46oUfIlJvv2gkZ0=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "41828c4180fb921df7992a5405f5ff05d2ac2fff",
|
"rev": "15a84097653593dd15fad59a56befc2b7bdc270d",
|
||||||
"revCount": 715,
|
"revCount": 750,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
},
|
},
|
||||||
@@ -1207,11 +1310,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767693058,
|
"lastModified": 1773392641,
|
||||||
"narHash": "sha256-rnLX8IA4yMbKHjYmJPcYCcWrqJ50B8WApQW62l+V9LE=",
|
"narHash": "sha256-Qu768qE1C6nMpWYi+83AZt3jEwXE+NQKsgZ3fz3+vLE=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "6742148cf4a8415a9c51fdeb11d8c3ea716c2e14",
|
"rev": "4b77936c8019e0f51e0e62414c6de3556d5f8870",
|
||||||
"revCount": 717,
|
"revCount": 757,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
},
|
},
|
||||||
@@ -1231,15 +1334,15 @@
|
|||||||
"hyprland-hyprsplit": "hyprland-hyprsplit",
|
"hyprland-hyprsplit": "hyprland-hyprsplit",
|
||||||
"hyprland-plugins": "hyprland-plugins",
|
"hyprland-plugins": "hyprland-plugins",
|
||||||
"jovian": "jovian",
|
"jovian": "jovian",
|
||||||
|
"niri": "niri",
|
||||||
"nix-alien": "nix-alien",
|
"nix-alien": "nix-alien",
|
||||||
"nix-colors": "nix-colors",
|
"nix-colors": "nix-colors",
|
||||||
"nix-index-database": "nix-index-database_2",
|
"nix-index-database": "nix-index-database_2",
|
||||||
"nixcord": "nixcord",
|
"nixcord": "nixcord",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"qs-qml": "qs-qml",
|
"qs-qml": "qs-qml",
|
||||||
"quickshell": "quickshell_4",
|
"quickshell": "quickshell_4",
|
||||||
"stylix": "stylix",
|
"stylix": "stylix",
|
||||||
"vicinae": "vicinae",
|
|
||||||
"zen-browser": "zen-browser"
|
"zen-browser": "zen-browser"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1252,7 +1355,7 @@
|
|||||||
"firefox-gnome-theme": "firefox-gnome-theme",
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"gnome-shell": "gnome-shell",
|
"gnome-shell": "gnome-shell",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_6",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"systems": "systems_2",
|
"systems": "systems_2",
|
||||||
"tinted-foot": "tinted-foot",
|
"tinted-foot": "tinted-foot",
|
||||||
@@ -1262,11 +1365,11 @@
|
|||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767652667,
|
"lastModified": 1772296853,
|
||||||
"narHash": "sha256-zsgfockkvK0JrSvzVAb8JeUq3SDdITu6ViUf7yeIpi4=",
|
"narHash": "sha256-pAtzPsgHRKw/2Kv8HgAjSJg450FDldHPWsP3AKG/Xj0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "a4406d9799d002c41296c72378a1094a8fc9aa1b",
|
"rev": "c4b8e80a1020e09a1f081ad0f98ce804a6e85acf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1305,21 +1408,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tinted-foot": {
|
"tinted-foot": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -1356,11 +1444,11 @@
|
|||||||
"tinted-schemes": {
|
"tinted-schemes": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763914658,
|
"lastModified": 1767710407,
|
||||||
"narHash": "sha256-Hju0WtMf3iForxtOwXqGp3Ynipo0EYx1AqMKLPp9BJw=",
|
"narHash": "sha256-+W1EB79Jl0/gm4JqmO0Nuc5C7hRdp4vfsV/VdzI+des=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "schemes",
|
"repo": "schemes",
|
||||||
"rev": "0f6be815d258e435c9b137befe5ef4ff24bea32c",
|
"rev": "2800e2b8ac90f678d7e4acebe4fa253f602e05b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1372,11 +1460,11 @@
|
|||||||
"tinted-tmux": {
|
"tinted-tmux": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764465359,
|
"lastModified": 1767489635,
|
||||||
"narHash": "sha256-lbSVPqLEk2SqMrnpvWuKYGCaAlfWFMA6MVmcOFJjdjE=",
|
"narHash": "sha256-e6nnFnWXKBCJjCv4QG4bbcouJ6y3yeT70V9MofL32lU=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "tinted-tmux",
|
"repo": "tinted-tmux",
|
||||||
"rev": "edf89a780e239263cc691a987721f786ddc4f6aa",
|
"rev": "3c32729ccae99be44fe8a125d20be06f8d7d8184",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1388,11 +1476,11 @@
|
|||||||
"tinted-zed": {
|
"tinted-zed": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764464512,
|
"lastModified": 1767488740,
|
||||||
"narHash": "sha256-rCD/pAhkMdCx6blsFwxIyvBJbPZZ1oL2sVFrH07lmqg=",
|
"narHash": "sha256-wVOj0qyil8m+ouSsVZcNjl5ZR+1GdOOAooAatQXHbuU=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "base16-zed",
|
"repo": "base16-zed",
|
||||||
"rev": "907dbba5fb8cf69ebfd90b00813418a412d0a29a",
|
"rev": "11abb0b282ad3786a2aae088d3a01c60916f2e40",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1401,25 +1489,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vicinae": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs_5",
|
|
||||||
"systems": "systems_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767815010,
|
|
||||||
"narHash": "sha256-OPBgcM2ZzbVEUS6lwRpJo2JBfiRK8TmYVSmZImEW2gA=",
|
|
||||||
"owner": "vicinaehq",
|
|
||||||
"repo": "vicinae",
|
|
||||||
"rev": "aab965dcf29529c5fab67b9c2fb5f8168f76fa1b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "vicinaehq",
|
|
||||||
"repo": "vicinae",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"xdph": {
|
"xdph": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprland-protocols": [
|
"hyprland-protocols": [
|
||||||
@@ -1461,6 +1530,39 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"xwayland-satellite-stable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755491097,
|
||||||
|
"narHash": "sha256-m+9tUfsmBeF2Gn4HWa6vSITZ4Gz1eA1F5Kh62B0N4oE=",
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"rev": "388d291e82ffbc73be18169d39470f340707edaa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"ref": "v0.7",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"xwayland-satellite-unstable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772429643,
|
||||||
|
"narHash": "sha256-M+bAeCCcjBnVk6w/4dIVvXvpJwOKnXjwi/lDbaN6Yws=",
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"rev": "10f985b84cdbcc3bbf35b3e7e43d1b2a84fa9ce2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"zen-browser": {
|
"zen-browser": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": [
|
"home-manager": [
|
||||||
@@ -1471,11 +1573,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767763594,
|
"lastModified": 1773290887,
|
||||||
"narHash": "sha256-5ysv8EuVAgDoYmNuXEUNf7vBzdeRaFxeIlIndv5HMvs=",
|
"narHash": "sha256-L1yMYmFffHfZNP+hKJGRBmrFKkn/VDhu7jEbVftBQuM=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "8b2302d8c10369c9135552cc892da75cff5ddb03",
|
"rev": "9346698c4562819f61b4e5097151ec0b17729fab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
12
flake.nix
12
flake.nix
@@ -21,7 +21,7 @@
|
|||||||
url = "github:kaylorben/nixcord";
|
url = "github:kaylorben/nixcord";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
#niri.url = "github:sodiboo/niri-flake";
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
dgop = {
|
dgop = {
|
||||||
url = "github:AvengeMedia/dgop";
|
url = "github:AvengeMedia/dgop";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -49,7 +49,6 @@
|
|||||||
};
|
};
|
||||||
hyprland = {
|
hyprland = {
|
||||||
url = "github:hyprwm/Hyprland";
|
url = "github:hyprwm/Hyprland";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
};
|
||||||
hyprland-plugins = {
|
hyprland-plugins = {
|
||||||
url = "github:hyprwm/hyprland-plugins";
|
url = "github:hyprwm/hyprland-plugins";
|
||||||
@@ -59,11 +58,6 @@
|
|||||||
url = "github:Duckonaut/split-monitor-workspaces";
|
url = "github:Duckonaut/split-monitor-workspaces";
|
||||||
inputs.hyprland.follows = "hyprland";
|
inputs.hyprland.follows = "hyprland";
|
||||||
};
|
};
|
||||||
vicinae = {
|
|
||||||
url = "github:vicinaehq/vicinae";
|
|
||||||
#inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
# ... your existing inputs ...
|
|
||||||
jovian = {
|
jovian = {
|
||||||
url = "github:Jovian-Experiments/Jovian-NixOS";
|
url = "github:Jovian-Experiments/Jovian-NixOS";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -84,8 +78,8 @@
|
|||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#Avalable options are ["niri" "river" "hyprland" "all"]
|
#Avalable options are ["niri" "hyprland" "all"]
|
||||||
window_manager = "hyprland";
|
window_manager = "all";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|||||||
@@ -10,58 +10,76 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = builtins.elem systemName [
|
||||||
|
"laptop"
|
||||||
|
"pc"
|
||||||
|
];
|
||||||
|
message = "systemName must be either 'laptop' or 'pc', got: ${systemName}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules =
|
||||||
[ ]
|
[ ]
|
||||||
++ (lib.optionals (systemName == "pc") [
|
++ lib.optionals isPc [
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"ahci"
|
"ahci"
|
||||||
"nvme"
|
"nvme"
|
||||||
"usb_storage"
|
"usb_storage"
|
||||||
"usbhid"
|
"usbhid"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
])
|
]
|
||||||
++ (lib.optionals (systemName == "laptop") [
|
++ lib.optionals isLaptop [
|
||||||
"vmd"
|
"vmd"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"nvme"
|
"nvme"
|
||||||
"usb_storage"
|
"usb_storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
]);
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules =
|
boot.kernelModules =
|
||||||
[ ]
|
[ ]
|
||||||
++ (lib.optionals (systemName == "pc") [ "kvm-amd" "btusb"])
|
++ lib.optionals isPc [
|
||||||
++ (lib.optionals (systemName == "laptop") [ "kvm-intel" ]);
|
"kvm-amd"
|
||||||
|
"btusb"
|
||||||
|
]
|
||||||
|
++ lib.optionals isLaptop [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
# Most common working combination in 2024/2025
|
# Most common working combination in 2024/2025
|
||||||
"btusb.enable_autosuspend=0"
|
"btusb.enable_autosuspend=0"
|
||||||
"btusb.reset=1"
|
"btusb.reset=1"
|
||||||
];
|
];
|
||||||
|
boot.tmp.useTmpfs = true;
|
||||||
|
|
||||||
fileSystems."/" = lib.mkMerge [
|
fileSystems."/" = lib.mkMerge [
|
||||||
(lib.mkIf (systemName == "pc") {
|
(lib.mkIf isPc {
|
||||||
device = "/dev/disk/by-uuid/fdcbb840-4b35-4023-a048-599b0c5161d6";
|
device = "/dev/disk/by-uuid/fdcbb840-4b35-4023-a048-599b0c5161d6";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
})
|
})
|
||||||
(lib.mkIf (systemName == "laptop") {
|
(lib.mkIf isLaptop {
|
||||||
device = "/dev/disk/by-uuid/6aa7c67d-a0a5-4928-b16b-9c7991fee7ab";
|
device = "/dev/disk/by-uuid/60ef2e23-4b8b-41cd-896d-e6bad07905f8";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/boot" = lib.mkMerge [
|
fileSystems."/boot" = lib.mkMerge [
|
||||||
(lib.mkIf (systemName == "pc") {
|
(lib.mkIf isPc {
|
||||||
device = "/dev/disk/by-uuid/E1B6-9089";
|
device = "/dev/disk/by-uuid/E1B6-9089";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
})
|
})
|
||||||
(lib.mkIf (systemName == "laptop") {
|
(lib.mkIf isLaptop {
|
||||||
device = "/dev/disk/by-uuid/FF4B-819D";
|
device = "/dev/disk/by-uuid/FD33-308F";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [
|
options = [
|
||||||
"fmask=0077"
|
"fmask=0077"
|
||||||
@@ -71,20 +89,20 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/home" = lib.mkMerge [
|
fileSystems."/home" = lib.mkMerge [
|
||||||
(lib.mkIf (systemName == "pc") {
|
(lib.mkIf isPc {
|
||||||
device = "/dev/disk/by-uuid/d226a8ed-10eb-452e-9284-1ff994a7f179";
|
device = "/dev/disk/by-uuid/d226a8ed-10eb-452e-9284-1ff994a7f179";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/home/game/Games" = lib.mkMerge [
|
fileSystems."/home/game/Games" = lib.mkMerge [
|
||||||
(lib.mkIf (systemName == "pc") {
|
(lib.mkIf isPc {
|
||||||
device = "/dev/disk/by-uuid/54188f21-d525-4681-a9d4-b798363eef17";
|
device = "/dev/disk/by-uuid/54188f21-d525-4681-a9d4-b798363eef17";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
#fileSystems."/server" = lib.mkIf isPc { # or remove the mkIf if you want it on both
|
||||||
#fileSystems."/server" = lib.mkIf (systemName == "pc") { # or remove the mkIf if you want it on both
|
|
||||||
# device = "//192.168.1.8/mrfluffy"; # adjust the share name if it’s not the home share
|
# device = "//192.168.1.8/mrfluffy"; # adjust the share name if it’s not the home share
|
||||||
# fsType = "cifs";
|
# fsType = "cifs";
|
||||||
# options = let
|
# options = let
|
||||||
@@ -109,16 +127,12 @@
|
|||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ ]
|
[ ]
|
||||||
++ (lib.optionals (systemName == "pc") [
|
++ lib.optionals isPc [
|
||||||
{
|
{ device = "/dev/disk/by-uuid/ccf41b96-c45f-47e0-8541-cd865f5d2ec6"; }
|
||||||
device = "/dev/disk/by-uuid/ccf41b96-c45f-47e0-8541-cd865f5d2ec6";
|
]
|
||||||
}
|
++ lib.optionals isLaptop [
|
||||||
])
|
{ device = "/dev/disk/by-uuid/bc708cba-d240-4730-8de2-6ebc5ff5b278"; }
|
||||||
++ (lib.optionals (systemName == "laptop") [
|
];
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/b416c3bd-861b-4b0c-aa84-6962b2e6a47d";
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
@@ -130,10 +144,10 @@
|
|||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware = lib.mkMerge [
|
hardware = lib.mkMerge [
|
||||||
(lib.mkIf (systemName == "pc") {
|
(lib.mkIf isPc {
|
||||||
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
})
|
})
|
||||||
(lib.mkIf (systemName == "laptop") {
|
(lib.mkIf isLaptop {
|
||||||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|||||||
67
home/common.nix
Normal file
67
home/common.nix
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
window_manager,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Core theming & integrations
|
||||||
|
inputs.nix-colors.homeManagerModules.default
|
||||||
|
inputs.stylix.homeModules.stylix
|
||||||
|
inputs.nixcord.homeModules.nixcord
|
||||||
|
inputs.niri.homeModules.niri
|
||||||
|
|
||||||
|
# Local modules
|
||||||
|
./sessionVars.nix
|
||||||
|
./stylix.nix
|
||||||
|
./homePkgs.nix
|
||||||
|
./services.nix
|
||||||
|
|
||||||
|
# Dots
|
||||||
|
../dots/foot.nix
|
||||||
|
../dots/waybar.nix
|
||||||
|
../dots/zsh.nix
|
||||||
|
../dots/nixcord.nix
|
||||||
|
../dots/xdg.nix
|
||||||
|
../dots/hyprland.nix
|
||||||
|
../dots/niri.nix
|
||||||
|
../dots/hyprpaper.nix
|
||||||
|
../dots/caelestia.nix
|
||||||
|
../dots/dankMeterialShell.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Common state version
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
|
# Common GTK settings
|
||||||
|
#gtk = {
|
||||||
|
# enable = true;
|
||||||
|
# iconTheme = {
|
||||||
|
# name = "Reversal-black-dark";
|
||||||
|
# package = pkgs.reversal-icon-theme.override { allColorVariants = true; };
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
|
||||||
|
# Common packages for all users
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
lswt
|
||||||
|
swaybg
|
||||||
|
wlr-randr
|
||||||
|
];
|
||||||
|
|
||||||
|
# Common dotfiles
|
||||||
|
home.file = {
|
||||||
|
".config/nixpkgs/config.nix".text = ''
|
||||||
|
{ allowUnfree = true; }
|
||||||
|
'';
|
||||||
|
".config/doom".source = ../dots/doom;
|
||||||
|
"Pictures/Wallpapers".source = ../assets/Wallpapers;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
}
|
||||||
@@ -1,101 +1,19 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
|
||||||
window_manager,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ ./common.nix ];
|
||||||
# Core theming & integrations
|
|
||||||
inputs.nix-colors.homeManagerModules.default
|
|
||||||
inputs.stylix.homeModules.stylix
|
|
||||||
inputs.nixcord.homeModules.nixcord
|
|
||||||
# inputs.niri.homeModules.niri
|
|
||||||
|
|
||||||
# Local modules
|
# User-specific color scheme
|
||||||
./sessionVars.nix
|
|
||||||
./stylix.nix
|
|
||||||
./homePkgs.nix
|
|
||||||
./services.nix
|
|
||||||
|
|
||||||
# Dots
|
|
||||||
../dots/foot.nix
|
|
||||||
../dots/zsh.nix
|
|
||||||
../dots/xdg.nix
|
|
||||||
../dots/hyprland.nix
|
|
||||||
../dots/caelestia.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# You can find color schemes at: https://github.com/tinted-theming/schemes
|
|
||||||
colorScheme = inputs.nix-colors.colorSchemes.hardcore;
|
colorScheme = inputs.nix-colors.colorSchemes.hardcore;
|
||||||
stylix.base16Scheme.base00 = "141414";
|
stylix.base16Scheme.base00 = "141414";
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the paths it should manage.
|
# User identity
|
||||||
home.username = "game";
|
home.username = "game";
|
||||||
home.homeDirectory = "/home/game";
|
home.homeDirectory = "/home/game";
|
||||||
|
|
||||||
# This determines compatibility with a specific Home Manager release.
|
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
||||||
|
|
||||||
# Example GTK block (disabled)
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
iconTheme = {
|
|
||||||
name = "Reversal-black-dark";
|
|
||||||
package = pkgs.reversal-icon-theme.override { allColorVariants = true; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
############################
|
|
||||||
# Wayland / Desktop tools
|
|
||||||
############################
|
|
||||||
lswt
|
|
||||||
swaybg
|
|
||||||
wlr-randr
|
|
||||||
|
|
||||||
############################
|
|
||||||
# Experimental (inputs)
|
|
||||||
############################
|
|
||||||
# inputs.ladybird.packages."${pkgs.stdenv.hostPlatform.system}".ladybird
|
|
||||||
|
|
||||||
# ##########################
|
|
||||||
# Examples (disabled)
|
|
||||||
# ##########################
|
|
||||||
# pkgs.hello
|
|
||||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
||||||
# echo "Hello, ${config.home.username}!"
|
|
||||||
# '')
|
|
||||||
];
|
|
||||||
|
|
||||||
# Dotfiles & static files managed by Home Manager
|
|
||||||
home.file = {
|
|
||||||
".config/nixpkgs/config.nix".text = ''
|
|
||||||
{ allowUnfree = true; }
|
|
||||||
'';
|
|
||||||
".config/doom".source = ../dots/doom;
|
|
||||||
# ".config/quickshell".source = ../dots/shell;
|
|
||||||
# ".config/kitty".source = ../../universal/dots/kitty;
|
|
||||||
# ".config/nvim".source = ../../universal/dots/nvim;
|
|
||||||
"Pictures/Wallpapers".source = ../assets/Wallpapers;
|
|
||||||
|
|
||||||
# ".screenrc".source = dotfiles/screenrc;
|
|
||||||
# ".gradle/gradle.properties".text = ''
|
|
||||||
# org.gradle.console=verbose
|
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
|
||||||
# '';
|
|
||||||
};
|
|
||||||
|
|
||||||
# If you don't manage your shell with Home Manager, remember to source:
|
|
||||||
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
# /etc/profiles/per-user/mrfluffy/etc/profile.d/hm-session-vars.sh
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,12 +14,12 @@ let
|
|||||||
name = "default";
|
name = "default";
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.zen-browser.homeModules.beta
|
inputs.zen-browser.homeModules.beta
|
||||||
inputs.caelestia.homeManagerModules.default
|
inputs.caelestia.homeManagerModules.default
|
||||||
inputs.vicinae.homeManagerModules.default
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
@@ -51,7 +51,7 @@ in
|
|||||||
profiles.default = {
|
profiles.default = {
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
platformio.platformio-vscode-ide
|
platformio.platformio-vscode-ide
|
||||||
ms-vscode.cpptools
|
ms-vscode.cpptools
|
||||||
];
|
];
|
||||||
|
|
||||||
# Optional: keep Code from trying to self-update
|
# Optional: keep Code from trying to self-update
|
||||||
@@ -68,44 +68,6 @@ in
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.vicinae = {
|
|
||||||
enable = true; # default: false
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
environment = {
|
|
||||||
USE_LAYER_SHELL = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#package = # specify package to use here. Can be omitted.
|
|
||||||
# Installing (vicinae) extensions declaratively
|
|
||||||
#settings = {
|
|
||||||
# faviconService = "twenty"; # twenty | google | none
|
|
||||||
# font.size = 11;
|
|
||||||
# popToRootOnClose = false;
|
|
||||||
# rootSearch.searchFiles = false;
|
|
||||||
# theme.name = "vicinae-dark";
|
|
||||||
# window = {
|
|
||||||
# csd = true;
|
|
||||||
# opacity = 0.95;
|
|
||||||
# rounding = 10;
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
#extensions = [
|
|
||||||
# (inputs.vicinae.mkVicinaeExtension.${pkgs.stdenv.hostPlatform.system} {
|
|
||||||
# inherit pkgs;
|
|
||||||
# name = "extension-name";
|
|
||||||
# src = pkgs.fetchFromGitHub {
|
|
||||||
# # You can also specify different sources other than github
|
|
||||||
# owner = "repo-owner";
|
|
||||||
# repo = "repo-name";
|
|
||||||
# rev = "v1.0"; # If the extension has no releases use the latest commit hash
|
|
||||||
# # You can get the sha256 by rebuilding once and then copying the output hash from the error message
|
|
||||||
# sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
|
||||||
# }; # If the extension is in a subdirectory you can add ` + "/subdir"` between the brace and the semicolon here
|
|
||||||
# })
|
|
||||||
#];
|
|
||||||
};
|
|
||||||
|
|
||||||
qt.enable = true;
|
qt.enable = true;
|
||||||
# qt.style = "gtk2";
|
# qt.style = "gtk2";
|
||||||
# qt.platformTheme = "qt5ct";
|
# qt.platformTheme = "qt5ct";
|
||||||
@@ -125,20 +87,14 @@ in
|
|||||||
services.kdeconnect.enable = true;
|
services.kdeconnect.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
############################
|
# ─── Shells & Terminals ──────────────────────────────────────────────────────
|
||||||
# Shells & Terminals
|
|
||||||
############################
|
|
||||||
alacritty
|
alacritty
|
||||||
zsh
|
zsh
|
||||||
|
|
||||||
############################
|
# ─── CLI Shit ────────────────────────────────────────────────────────────────
|
||||||
# CLI Shit
|
|
||||||
############################
|
|
||||||
atuin
|
atuin
|
||||||
|
|
||||||
############################
|
# ─── System Utilities ──────────────────────────────────────────────────────────
|
||||||
# System Utilities
|
|
||||||
############################
|
|
||||||
app2unit
|
app2unit
|
||||||
brightnessctl
|
brightnessctl
|
||||||
ddcutil
|
ddcutil
|
||||||
@@ -150,15 +106,11 @@ in
|
|||||||
xarchiver
|
xarchiver
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
|
|
||||||
############################
|
# ─── Monitoring & TUI Apps ───────────────────────────────────────────────────
|
||||||
# Monitoring & TUI Apps
|
|
||||||
############################
|
|
||||||
btop
|
btop
|
||||||
cava
|
cava
|
||||||
|
|
||||||
############################
|
# ─── Wayland / Desktop Tools ─────────────────────────────────────────────────
|
||||||
# Wayland / Desktop Tools
|
|
||||||
############################
|
|
||||||
grim
|
grim
|
||||||
hyprpaper
|
hyprpaper
|
||||||
hyprpicker
|
hyprpicker
|
||||||
@@ -167,49 +119,39 @@ in
|
|||||||
slurp
|
slurp
|
||||||
swappy
|
swappy
|
||||||
wf-recorder
|
wf-recorder
|
||||||
|
dsearch
|
||||||
|
|
||||||
############################
|
# ─── Audio / Media Tools ─────────────────────────────────────────────────────
|
||||||
# Audio / Media Tools
|
|
||||||
############################
|
|
||||||
openai-whisper
|
openai-whisper
|
||||||
pamixer
|
pamixer
|
||||||
playerctl
|
playerctl
|
||||||
alsa-utils
|
alsa-utils
|
||||||
|
|
||||||
############################
|
# ─── Browsers & Web ────────────────────────────────────────────────────────────
|
||||||
# Browsers & Web
|
|
||||||
############################
|
|
||||||
brave
|
brave
|
||||||
firefox
|
firefox
|
||||||
ladybird
|
ladybird
|
||||||
wgnord
|
wgnord
|
||||||
|
|
||||||
############################
|
# ─── Communication & Sharing ─────────────────────────────────────────────────
|
||||||
# Communication & Sharing
|
element-desktop
|
||||||
############################
|
|
||||||
#element-desktop
|
|
||||||
localsend
|
localsend
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|
||||||
############################
|
# ─── Documents & Viewers ─────────────────────────────────────────────────────
|
||||||
# Documents & Viewers
|
|
||||||
############################
|
|
||||||
libreoffice
|
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
zathura
|
zathura
|
||||||
|
|
||||||
############################
|
# ─── Media Players & Imaging ─────────────────────────────────────────────────
|
||||||
# Media Players & Imaging
|
|
||||||
############################
|
|
||||||
imv
|
imv
|
||||||
mpv
|
mpv
|
||||||
#upscaler
|
#upscaler
|
||||||
pear-desktop
|
pear-desktop
|
||||||
libsixel
|
libsixel
|
||||||
|
jellyfin-desktop
|
||||||
|
(pkgs.callPackage ../personalPKGS/world-monitor.nix { })
|
||||||
|
|
||||||
############################
|
# ─── Development Toolchains ──────────────────────────────────────────────────
|
||||||
# Development Toolchains
|
|
||||||
############################
|
|
||||||
gdb
|
gdb
|
||||||
nodejs_20
|
nodejs_20
|
||||||
platformio
|
platformio
|
||||||
@@ -218,33 +160,26 @@ in
|
|||||||
zed-editor
|
zed-editor
|
||||||
android-studio-full
|
android-studio-full
|
||||||
claude-code
|
claude-code
|
||||||
# Language tooling from inputs
|
opencode
|
||||||
|
# Langugage tooling from inputs
|
||||||
#inputs.qs-qml.packages.${pkgs.stdenv.hostPlatform.system}.qml-ts-mode
|
#inputs.qs-qml.packages.${pkgs.stdenv.hostPlatform.system}.qml-ts-mode
|
||||||
#inputs.qs-qml.packages.${pkgs.stdenv.hostPlatform.system}.tree-sitter-qmljs
|
#inputs.qs-qml.packages.${pkgs.stdenv.hostPlatform.system}.tree-sitter-qmljs
|
||||||
|
|
||||||
############################
|
# ─── Game Dev / Engines / Creative ──────────────────────────────────────────
|
||||||
# Game Dev / Engines / Creative
|
|
||||||
############################
|
|
||||||
blender
|
blender
|
||||||
godot_4
|
godot_4
|
||||||
freecad
|
freecad
|
||||||
|
|
||||||
############################
|
# ─── Emulation ────────────────────────────────────────────────────────────────
|
||||||
# Emulation
|
|
||||||
############################
|
|
||||||
fuse
|
fuse
|
||||||
fuse-emulator
|
fuse-emulator
|
||||||
fuse3
|
fuse3
|
||||||
|
|
||||||
############################
|
# ─── Android Tools ───────────────────────────────────────────────────────────
|
||||||
# Android Tools
|
|
||||||
############################
|
|
||||||
android-tools
|
android-tools
|
||||||
scrcpy
|
scrcpy
|
||||||
|
|
||||||
############################
|
# ─── Gaming & Launchers ──────────────────────────────────────────────────────
|
||||||
# Gaming & Launchers
|
|
||||||
############################
|
|
||||||
dualsensectl
|
dualsensectl
|
||||||
gamemode
|
gamemode
|
||||||
goverlay
|
goverlay
|
||||||
@@ -253,47 +188,33 @@ in
|
|||||||
})
|
})
|
||||||
prismlauncher
|
prismlauncher
|
||||||
protonup-qt
|
protonup-qt
|
||||||
wineWowPackages.stable
|
|
||||||
mangayomi
|
mangayomi
|
||||||
rink
|
rink
|
||||||
protontricks
|
protontricks
|
||||||
|
|
||||||
abaddon
|
abaddon
|
||||||
|
|
||||||
############################
|
# ─── KDE / File Management ───────────────────────────────────────────────────
|
||||||
# KDE / File Management
|
|
||||||
############################
|
|
||||||
kdePackages.qt6ct
|
kdePackages.qt6ct
|
||||||
kdePackages.baloo # new
|
|
||||||
kdePackages.baloo-widgets # new
|
|
||||||
kdePackages.dolphin
|
|
||||||
kdePackages.ffmpegthumbs # new
|
|
||||||
kdePackages.kdegraphics-mobipocket # new
|
|
||||||
kdePackages.kdegraphics-thumbnailers # new
|
|
||||||
kdePackages.kdesdk-thumbnailers # new
|
|
||||||
kdePackages.kimageformats # new
|
|
||||||
kdePackages.kio
|
|
||||||
kdePackages.kio-extras
|
|
||||||
# kdePackages.breeze-icons
|
|
||||||
# kdePackages.dolphin-plugins
|
|
||||||
# kdePackages.kde-cli-tools
|
|
||||||
# resvg # new
|
# resvg # new
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
qt6.qtsvg
|
qt6.qtsvg
|
||||||
|
|
||||||
adw-gtk3
|
adw-gtk3
|
||||||
|
(pkgs.callPackage ../personalPKGS/oreo.nix { colors = [ "all" ]; })
|
||||||
|
(pkgs.callPackage ../personalPKGS/reversal-icon-theme.nix { colorVariants = [ "all" ]; })
|
||||||
|
#(pkgs.reversal-icon-theme.override {
|
||||||
|
# allColorVariants = true;
|
||||||
|
#})
|
||||||
|
|
||||||
pywalfox-native
|
pywalfox-native
|
||||||
|
|
||||||
############################
|
# ─── Experimental (inputs) ───────────────────────────────────────────────────
|
||||||
# Experimental (inputs)
|
|
||||||
############################
|
|
||||||
#inputs.ladybird.packages."${pkgs.stdenv.hostPlatform.system}".ladybird
|
#inputs.ladybird.packages."${pkgs.stdenv.hostPlatform.system}".ladybird
|
||||||
#inputs.hyprlauncher.packages.${pkgs.stdenv.hostPlatform.system}.default
|
#inputs.hyprlauncher.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
|
||||||
############################
|
# ─── Blockchain (inputs) ─────────────────────────────────────────────────────
|
||||||
# Blockchain (inputs)
|
|
||||||
############################
|
|
||||||
#inputs.caelestia-cli.packages.${pkgs.stdenv.hostPlatform.system}.caelestia-cli
|
#inputs.caelestia-cli.packages.${pkgs.stdenv.hostPlatform.system}.caelestia-cli
|
||||||
#inputs.caelestia.packages.${pkgs.stdenv.hostPlatform.system}.caelestia-shell
|
#inputs.caelestia.packages.${pkgs.stdenv.hostPlatform.system}.caelestia-shell
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,120 +1,27 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
|
||||||
window_manager,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ ./common.nix ];
|
||||||
# Core theming & integrations
|
|
||||||
inputs.nix-colors.homeManagerModules.default
|
|
||||||
inputs.stylix.homeModules.stylix
|
|
||||||
inputs.nixcord.homeModules.nixcord
|
|
||||||
# inputs.niri.homeModules.niri
|
|
||||||
|
|
||||||
# Local modules
|
# User-specific color scheme
|
||||||
./sessionVars.nix
|
|
||||||
./stylix.nix
|
|
||||||
./homePkgs.nix
|
|
||||||
./services.nix
|
|
||||||
|
|
||||||
# Dots
|
|
||||||
../dots/foot.nix
|
|
||||||
../dots/waybar.nix
|
|
||||||
../dots/zsh.nix
|
|
||||||
../dots/nixcord.nix
|
|
||||||
#../dots/hyprlock.nix
|
|
||||||
../dots/xdg.nix
|
|
||||||
../dots/river.nix
|
|
||||||
#../dots/niri.nix
|
|
||||||
../dots/hyprland.nix
|
|
||||||
../dots/hyprpaper.nix
|
|
||||||
../dots/caelestia.nix
|
|
||||||
../dots/dankMeterialShell.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# You can find color schemes at: https://github.com/tinted-theming/schemes
|
|
||||||
colorScheme = inputs.nix-colors.colorSchemes.hardcore;
|
colorScheme = inputs.nix-colors.colorSchemes.hardcore;
|
||||||
stylix.base16Scheme.base00 = "141414";
|
stylix.base16Scheme.base00 = "141414";
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the paths it should manage.
|
# User identity
|
||||||
home.username = "mrfluffy";
|
home.username = "mrfluffy";
|
||||||
home.homeDirectory = "/home/mrfluffy";
|
home.homeDirectory = "/home/mrfluffy";
|
||||||
|
|
||||||
# This determines compatibility with a specific Home Manager release.
|
# User-specific GTK theme
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
#gtk.gtk3 = {
|
||||||
|
# theme = {
|
||||||
# Example GTK block (disabled)
|
# name = "adw-gtk3";
|
||||||
gtk = {
|
# package = pkgs.adw-gtk3;
|
||||||
enable = true;
|
# };
|
||||||
gtk3 = {
|
#};
|
||||||
theme = {
|
|
||||||
name = "adw-gtk3";
|
|
||||||
package = pkgs.adw-gtk3;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#gtk4 = {
|
|
||||||
# theme = {
|
|
||||||
# name = "adw-gtk3";
|
|
||||||
# package = pkgs.adw-gtk3;
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
iconTheme = {
|
|
||||||
name = "Reversal-black-dark";
|
|
||||||
package = pkgs.reversal-icon-theme.override { allColorVariants = true; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
############################
|
|
||||||
# Wayland / Desktop tools
|
|
||||||
############################
|
|
||||||
lswt
|
|
||||||
swaybg
|
|
||||||
wlr-randr
|
|
||||||
|
|
||||||
############################
|
|
||||||
# Experimental (inputs)
|
|
||||||
############################
|
|
||||||
# inputs.ladybird.packages."${pkgs.stdenv.hostPlatform.system}".ladybird
|
|
||||||
|
|
||||||
# ##########################
|
|
||||||
# Examples (disabled)
|
|
||||||
# ##########################
|
|
||||||
# pkgs.hello
|
|
||||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
||||||
# echo "Hello, ${config.home.username}!"
|
|
||||||
# '')
|
|
||||||
];
|
|
||||||
|
|
||||||
# Dotfiles & static files managed by Home Manager
|
|
||||||
home.file = {
|
|
||||||
".config/nixpkgs/config.nix".text = ''
|
|
||||||
{ allowUnfree = true; }
|
|
||||||
'';
|
|
||||||
".config/doom".source = ../dots/doom;
|
|
||||||
# ".config/quickshell".source = ../dots/shell;
|
|
||||||
# ".config/kitty".source = ../../universal/dots/kitty;
|
|
||||||
# ".config/nvim".source = ../../universal/dots/nvim;
|
|
||||||
"Pictures/Wallpapers".source = ../assets/Wallpapers;
|
|
||||||
|
|
||||||
# ".screenrc".source = dotfiles/screenrc;
|
|
||||||
# ".gradle/gradle.properties".text = ''
|
|
||||||
# org.gradle.console=verbose
|
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
|
||||||
# '';
|
|
||||||
};
|
|
||||||
|
|
||||||
# If you don't manage your shell with Home Manager, remember to source:
|
|
||||||
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
# /etc/profiles/per-user/mrfluffy/etc/profile.d/hm-session-vars.sh
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,27 +6,10 @@
|
|||||||
window_manager,
|
window_manager,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
#quickshellPackage = inputs.caelestia.packages.${pkgs.stdenv.hostPlatform.system}.caelestia-shell;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
#systemd.user.services.quickshell = lib.mkIf (window_manager == "hyprland") {
|
services.gnome-keyring = {
|
||||||
# Unit = {
|
enable = true;
|
||||||
# Description = "QuickShell Application";
|
components = [ "pkcs11" "secrets" "ssh" ];
|
||||||
# After = [ "graphical-session.target" ];
|
};
|
||||||
# Requires = [ "graphical-session.target" ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Service = {
|
|
||||||
# Type = "simple";
|
|
||||||
# ExecStart = "${quickshellPackage}/bin/caelestia-shell";
|
|
||||||
# ExecStartPre = "/bin/sh -c 'test -n \"$WAYLAND_DISPLAY\"'";
|
|
||||||
# Restart = "always";
|
|
||||||
# RestartSec = "5s";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Install = {
|
|
||||||
# WantedBy = [ "graphical-session.target" ];
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
WLR_DRM_NO_ATOMIC = 1;
|
WLR_DRM_NO_ATOMIC = 1;
|
||||||
VDPAU_DRIVER = "radeonsi";
|
VDPAU_DRIVER = "radeonsi";
|
||||||
LIBVA_DRIVER_NAME = "radeonsi";
|
LIBVA_DRIVER_NAME = "radeonsi";
|
||||||
OLLAMA_HOST = "0.0.0.0";
|
OLLAMA_HOST = "127.0.0.1";
|
||||||
PATH = "$HOME/.config/emacs/bin:$PATH";
|
PATH = "$HOME/.config/emacs/bin:$PATH";
|
||||||
FZF_DEFAULT_COMMAND = "${lib.getExe pkgs.ripgrep} ~ --files --hidden";
|
FZF_DEFAULT_COMMAND = "${lib.getExe pkgs.ripgrep} ~ --files --hidden";
|
||||||
FZF_DEFAULT_OPTS = "--height 30% --reverse";
|
FZF_DEFAULT_OPTS = "--height 30% --reverse";
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
GNUPGHOME = "$XDG_DATA_HOME/gnupg";
|
GNUPGHOME = "$XDG_DATA_HOME/gnupg";
|
||||||
GOPATH = "$XDG_DATA_HOME/go";
|
GOPATH = "$XDG_DATA_HOME/go";
|
||||||
GRADLE_USER_HOME = "$XDG_DATA_HOME/gradle";
|
GRADLE_USER_HOME = "$XDG_DATA_HOME/gradle";
|
||||||
IPYTHONDIR = "$XDG_CONFIG_HOMEipython";
|
IPYTHONDIR = "$XDG_CONFIG_HOME/ipython";
|
||||||
JUPYTER_CONFIG_DIR = "$XDG_CONFIG_HOME/jupyter";
|
JUPYTER_CONFIG_DIR = "$XDG_CONFIG_HOME/jupyter";
|
||||||
LESSHISTFILE = "$XDG_CACHE_HOME/less/history";
|
LESSHISTFILE = "$XDG_CACHE_HOME/less/history";
|
||||||
NUGET_PACKAGES = "$XDG_CACHE_HOME/NuGetPackages";
|
NUGET_PACKAGES = "$XDG_CACHE_HOME/NuGetPackages";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -31,10 +31,9 @@ in
|
|||||||
#vscode.enable = true;
|
#vscode.enable = true;
|
||||||
lazygit.enable = true;
|
lazygit.enable = true;
|
||||||
#foot.enable = true;
|
#foot.enable = true;
|
||||||
river.enable = true;
|
|
||||||
#hyprland.enable = true;
|
#hyprland.enable = true;
|
||||||
waybar.enable = true;
|
#waybar.enable = true;
|
||||||
nixcord.enable = true;
|
#nixcord.enable = true;
|
||||||
|
|
||||||
#zen-browser = {
|
#zen-browser = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
@@ -50,7 +49,7 @@ in
|
|||||||
# enable = true;
|
# enable = true;
|
||||||
# #package = lib.mkForce (pkgs.reversal-icon-theme.override { allColorVariants = true; });
|
# #package = lib.mkForce (pkgs.reversal-icon-theme.override { allColorVariants = true; });
|
||||||
# light = "Reversal-black";
|
# light = "Reversal-black";
|
||||||
# dark = "Reversal-black-dark";
|
# dark = "Reversal-black-dark";
|
||||||
#};
|
#};
|
||||||
|
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
@@ -80,16 +79,16 @@ in
|
|||||||
};
|
};
|
||||||
sizes = {
|
sizes = {
|
||||||
applications = 12;
|
applications = 12;
|
||||||
desktop = 12;
|
desktop = 12;
|
||||||
popups = 14;
|
popups = 14;
|
||||||
terminal = 16;
|
terminal = 16;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cursor = {
|
#cursor = {
|
||||||
package = oreo.override { colors = [ "oreo_spark_pink_cursors" ]; };
|
# package = oreo.override { colors = [ "oreo_spark_pink_cursors" ]; };
|
||||||
name = "oreo_spark_pink_cursors";
|
# name = "oreo_spark_pink_cursors";
|
||||||
size = 32;
|
# size = 32;
|
||||||
};
|
#};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
105
home/work.nix
105
home/work.nix
@@ -1,114 +1,19 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
|
||||||
window_manager,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ ./common.nix ];
|
||||||
# Core theming & apps
|
|
||||||
inputs.nix-colors.homeManagerModules.default
|
|
||||||
inputs.stylix.homeModules.stylix
|
|
||||||
inputs.nixcord.homeModules.nixcord
|
|
||||||
# inputs.niri.homeModules.niri
|
|
||||||
|
|
||||||
# Local modules
|
# User-specific color scheme (different from mrfluffy)
|
||||||
./sessionVars.nix
|
|
||||||
./stylix.nix
|
|
||||||
./homePkgs.nix
|
|
||||||
./services.nix
|
|
||||||
|
|
||||||
# Dots
|
|
||||||
../dots/foot.nix
|
|
||||||
../dots/waybar.nix
|
|
||||||
../dots/zsh.nix
|
|
||||||
../dots/nixcord.nix
|
|
||||||
#../dots/hyprlock.nix
|
|
||||||
../dots/xdg.nix
|
|
||||||
../dots/river.nix
|
|
||||||
#../dots/niri.nix
|
|
||||||
../dots/hyprland.nix
|
|
||||||
../dots/hyprpaper.nix
|
|
||||||
../dots/caelestia.nix
|
|
||||||
../dots/dankMeterialShell.nix
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
# You can find color schemes at: https://github.com/tinted-theming/schemes
|
|
||||||
colorScheme = inputs.nix-colors.colorSchemes.blueish;
|
colorScheme = inputs.nix-colors.colorSchemes.blueish;
|
||||||
stylix.base16Scheme.base00 = "0F1417";
|
stylix.base16Scheme.base00 = "0F1417";
|
||||||
|
|
||||||
# Home Manager user information
|
# User identity
|
||||||
home.username = "work";
|
home.username = "work";
|
||||||
home.homeDirectory = "/home/work";
|
home.homeDirectory = "/home/work";
|
||||||
|
|
||||||
# This determines compatibility with a specific Home Manager release.
|
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
||||||
|
|
||||||
# Example GTK block (disabled)
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
iconTheme = {
|
|
||||||
name = "Reversal-black-dark";
|
|
||||||
package = pkgs.reversal-icon-theme.override { allColorVariants = true; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
############################
|
|
||||||
# Wayland / Desktop tools
|
|
||||||
############################
|
|
||||||
lswt
|
|
||||||
swaybg
|
|
||||||
wlr-randr
|
|
||||||
|
|
||||||
############################
|
|
||||||
# Browsers
|
|
||||||
############################
|
|
||||||
|
|
||||||
############################
|
|
||||||
# work stuff
|
|
||||||
############################
|
|
||||||
#awscli2
|
|
||||||
|
|
||||||
|
|
||||||
# swaynotificationcenter
|
|
||||||
# inputs.ladybird.packages."${pkgs.stdenv.hostPlatform.system}".ladybird
|
|
||||||
|
|
||||||
# pkgs.hello
|
|
||||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
||||||
# echo "Hello, ${config.home.username}!"
|
|
||||||
# '')
|
|
||||||
];
|
|
||||||
|
|
||||||
# Dotfiles & static files managed by Home Manager
|
|
||||||
home.file = {
|
|
||||||
".config/nixpkgs/config.nix".text = ''
|
|
||||||
{ allowUnfree = true; }
|
|
||||||
'';
|
|
||||||
".config/doom".source = ../dots/doom;
|
|
||||||
# ".config/quickshell".source = ../dots/shell;
|
|
||||||
# ".config/kitty".source = ../../universal/dots/kitty;
|
|
||||||
# ".config/nvim".source = ../../universal/dots/nvim;
|
|
||||||
"Pictures/Wallpapers".source = ../assets/Wallpapers;
|
|
||||||
|
|
||||||
# ".screenrc".source = dotfiles/screenrc;
|
|
||||||
# ".gradle/gradle.properties".text = ''
|
|
||||||
# org.gradle.console=verbose
|
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
|
||||||
# '';
|
|
||||||
};
|
|
||||||
|
|
||||||
# If you don't manage your shell with Home Manager, remember to source:
|
|
||||||
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
# /etc/profiles/per-user/mrfluffy/etc/profile.d/hm-session-vars.sh
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
87
personalPKGS/reversal-icon-theme.nix
Normal file
87
personalPKGS/reversal-icon-theme.nix
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenvNoCC,
|
||||||
|
fetchFromGitHub,
|
||||||
|
gtk3,
|
||||||
|
jdupes,
|
||||||
|
adwaita-icon-theme,
|
||||||
|
hicolor-icon-theme,
|
||||||
|
numix-icon-theme-circle,
|
||||||
|
colorVariants ? [ "black" ],
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "reversal-icon-theme";
|
||||||
|
in
|
||||||
|
lib.checkListOfEnum "${pname}: color variants" [
|
||||||
|
"black"
|
||||||
|
"blue"
|
||||||
|
"brown"
|
||||||
|
"cyan"
|
||||||
|
"green"
|
||||||
|
"grey"
|
||||||
|
"lightblue"
|
||||||
|
"orange"
|
||||||
|
"pink"
|
||||||
|
"purple"
|
||||||
|
"red"
|
||||||
|
"all"
|
||||||
|
] colorVariants
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
inherit pname;
|
||||||
|
version = "0-unstable-2026-01-26";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "yeyushengfan258";
|
||||||
|
repo = "Reversal-icon-theme";
|
||||||
|
rev = "26b97f00640cd9eaeb8f196eda3a8d298158a08f";
|
||||||
|
hash = "sha256-ahnp25wTCTrOtJUbAIv7vvVC2am+idEokoRomRe5aKU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
gtk3
|
||||||
|
jdupes
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
adwaita-icon-theme
|
||||||
|
hicolor-icon-theme
|
||||||
|
numix-icon-theme-circle
|
||||||
|
];
|
||||||
|
|
||||||
|
dontDropIconThemeCache = true;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs install.sh
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/share/icons
|
||||||
|
./install.sh -d $out/share/icons -t ${toString colorVariants}
|
||||||
|
|
||||||
|
# remove file that conflicts with other packages (e.g. gruvbox-dark-icons-gtk)
|
||||||
|
find $out/share/icons -name 'LICENSE' -delete
|
||||||
|
|
||||||
|
jdupes --quiet --link-soft --recurse $out/share
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontFixup = true;
|
||||||
|
|
||||||
|
passthru.updateScript = lib.maintainers.update-source-version {
|
||||||
|
src = "https://github.com/yeyushengfan258/${pname}";
|
||||||
|
versionType = "commit";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Colorful Design rectangular icon theme for Linux desktops";
|
||||||
|
homepage = "https://github.com/yeyushengfan258/Reversal-icon-theme";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ romildo ];
|
||||||
|
};
|
||||||
|
}
|
||||||
19
personalPKGS/world-monitor.nix
Normal file
19
personalPKGS/world-monitor.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ lib, appimageTools, fetchurl }:
|
||||||
|
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
pname = "world-monitor";
|
||||||
|
version = "2.5.23";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/koala73/worldmonitor/releases/download/v2.5.23/World.Monitor_2.5.23_amd64.AppImage";
|
||||||
|
sha256 = "139mra0j8lrx8l17gb77fa6zjarc1n7ffkzayas4j3zmwn08yjs0";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A simple app to monitor world events";
|
||||||
|
homepage = "https://github.com/koala73/worldmonitor";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
license = licenses.agpl3Only;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -25,9 +25,9 @@ in
|
|||||||
loader = {
|
loader = {
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
${lib.getExe pkgs.gnused} -i 's/default .*/default *-specialisation-00-main-system.conf/' /boot/loader/loader.conf
|
${lib.getExe pkgs.gnused} -i 's/default .*/default *-specialisation-00-main-system.conf/' /boot/loader/loader.conf
|
||||||
'';
|
'';
|
||||||
#sortKey = "z-normal";
|
#sortKey = "z-normal";
|
||||||
};
|
};
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
@@ -55,5 +55,10 @@ extraInstallCommands = ''
|
|||||||
options v4l2loopback devices=2 video_nr=1,0 card_label="OBS Cam","phone cam" exclusive_caps=1,1
|
options v4l2loopback devices=2 video_nr=1,0 card_label="OBS Cam","phone cam" exclusive_caps=1,1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
tmp = {
|
||||||
|
cleanOnBoot = lib.mkIf isLaptop true;
|
||||||
|
useTmpfs = lib.mkIf isPc true;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
|
||||||
# Shared VA-API / VDPAU bits across both machines
|
# Shared VA-API / VDPAU bits across both machines
|
||||||
commonVA = with pkgs; [
|
commonVA = with pkgs; [
|
||||||
libva
|
libva
|
||||||
@@ -18,7 +21,7 @@ in
|
|||||||
# ── Graphics ─────────────────────────────────────────────────────────────────
|
# ── Graphics ─────────────────────────────────────────────────────────────────
|
||||||
hardware.graphics = lib.mkMerge [
|
hardware.graphics = lib.mkMerge [
|
||||||
# Laptop: Intel stack
|
# Laptop: Intel stack
|
||||||
(lib.mkIf (systemName == "laptop") {
|
(lib.mkIf isLaptop {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
@@ -29,7 +32,7 @@ in
|
|||||||
})
|
})
|
||||||
|
|
||||||
# PC: AMD/ROCm stack
|
# PC: AMD/ROCm stack
|
||||||
(lib.mkIf (systemName == "pc") {
|
(lib.mkIf isPc {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
|||||||
@@ -1,18 +1,35 @@
|
|||||||
{ config, lib, pkgs, systemName, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
systemName,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# Set console keymap based on systemName
|
# Set console keymap based on systemName
|
||||||
console.keyMap = if systemName == "laptop" then "ie" else "us";
|
console.keyMap =
|
||||||
|
if isLaptop
|
||||||
|
then "ie"
|
||||||
|
else "us";
|
||||||
|
|
||||||
# Locale settings
|
# Locale settings
|
||||||
i18n.defaultLocale =
|
i18n.defaultLocale =
|
||||||
if systemName == "laptop"
|
if isLaptop
|
||||||
then "en_IE.UTF-8"
|
then "en_IE.UTF-8"
|
||||||
else "en_US.UTF-8";
|
else "en_US.UTF-8";
|
||||||
|
|
||||||
i18n.extraLocaleSettings = let
|
i18n.extraLocaleSettings =
|
||||||
locale = if systemName == "laptop" then "en_IE.UTF-8" else "en_US.UTF-8";
|
let
|
||||||
in {
|
locale =
|
||||||
|
if isLaptop
|
||||||
|
then "en_IE.UTF-8"
|
||||||
|
else "en_US.UTF-8";
|
||||||
|
in {
|
||||||
LC_ADDRESS = locale;
|
LC_ADDRESS = locale;
|
||||||
LC_IDENTIFICATION = locale;
|
LC_IDENTIFICATION = locale;
|
||||||
LC_MEASUREMENT = locale;
|
LC_MEASUREMENT = locale;
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
isLaptop = systemName == "laptop";
|
isLaptop = systemName == "laptop";
|
||||||
isPc = systemName == "pc";
|
isPc = systemName == "pc";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking = lib.mkMerge [
|
networking = lib.mkMerge [
|
||||||
# Hostname per system type
|
# Hostname per system type
|
||||||
(lib.mkIf isLaptop { hostName = "mrfluffyLaptop"; })
|
(lib.mkIf isLaptop { hostName = "mrfluffyLaptop"; })
|
||||||
(lib.mkIf isPc { hostName = "mrfluffyPC"; })
|
(lib.mkIf isPc { hostName = "mrfluffyPC"; })
|
||||||
|
|
||||||
# Common networking config
|
# Common networking config
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@@ -29,8 +29,8 @@ let
|
|||||||
-- HQ shader map
|
-- HQ shader map
|
||||||
local shader_map = {
|
local shader_map = {
|
||||||
[1080] = "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_VL.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl",
|
[1080] = "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_VL.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl",
|
||||||
[720] = "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_Soft_VL.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl",
|
[720] = "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_Soft_VL.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl",
|
||||||
[480] = "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"
|
[480] = "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Upscale_Denoise_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"
|
||||||
}
|
}
|
||||||
|
|
||||||
local resolutions = { 1080, 720, 480 }
|
local resolutions = { 1080, 720, 480 }
|
||||||
@@ -114,11 +114,6 @@ in
|
|||||||
virt-manager.enable = true;
|
virt-manager.enable = true;
|
||||||
corectrl.enable = true;
|
corectrl.enable = true;
|
||||||
|
|
||||||
opengamepadui = {
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
@@ -132,6 +127,9 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
libraries = with pkgs; [
|
libraries = with pkgs; [
|
||||||
gcc15.cc.lib
|
gcc15.cc.lib
|
||||||
|
icu
|
||||||
|
sdl3-image
|
||||||
|
libpng
|
||||||
# add libraries here if needed
|
# add libraries here if needed
|
||||||
# alsa-lib
|
# alsa-lib
|
||||||
# libGL
|
# libGL
|
||||||
@@ -140,9 +138,6 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Backlight tool
|
|
||||||
light.enable = true;
|
|
||||||
|
|
||||||
# NetworkManager applet
|
# NetworkManager applet
|
||||||
nm-applet = {
|
nm-applet = {
|
||||||
enable = false;
|
enable = false;
|
||||||
@@ -183,6 +178,7 @@ in
|
|||||||
nil
|
nil
|
||||||
nixfmt
|
nixfmt
|
||||||
inputs.nix-alien.packages.${pkgs.stdenv.hostPlatform.system}.nix-alien
|
inputs.nix-alien.packages.${pkgs.stdenv.hostPlatform.system}.nix-alien
|
||||||
|
cachix
|
||||||
|
|
||||||
# --- Wayland / Desktop ---
|
# --- Wayland / Desktop ---
|
||||||
foot
|
foot
|
||||||
@@ -209,16 +205,14 @@ in
|
|||||||
jdk11
|
jdk11
|
||||||
ladspaPlugins
|
ladspaPlugins
|
||||||
libtool
|
libtool
|
||||||
python311
|
python3
|
||||||
|
|
||||||
# --- Spellcheck / Fonts ---
|
# --- Spellcheck / Fonts ---
|
||||||
hunspell
|
hunspell
|
||||||
hunspellDicts.en_US
|
hunspellDicts.en_US
|
||||||
|
|
||||||
# --- KDE Wallet bits ---
|
# --- GNOME Keyring ---
|
||||||
kdePackages.kwallet
|
gnome-keyring
|
||||||
kdePackages.kwalletmanager
|
|
||||||
kdePackages.kwallet-pam
|
|
||||||
|
|
||||||
# --- Apps ---
|
# --- Apps ---
|
||||||
git
|
git
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
###############################################
|
# ─── Desktop & Input ───────────────────────────────────────────────────────
|
||||||
# Desktop & Input
|
|
||||||
###############################################
|
|
||||||
services.xserver.windowManager.fvwm2.gestures = true;
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled by default in most desktop managers).
|
# Enable touchpad support (enabled by default in most desktop managers).
|
||||||
services.libinput = {
|
services.libinput = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -31,75 +31,36 @@
|
|||||||
# services.xserver.displayManager.gdm.enable = true;
|
# services.xserver.displayManager.gdm.enable = true;
|
||||||
# services.xserver.desktopManager.gnome.enable = true;
|
# services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
###############################################
|
# ─── Audio / Bluetooth ──────────────────────────────────────────────────────
|
||||||
# Audio / Bluetooth
|
services.pipewire = {
|
||||||
###############################################
|
|
||||||
services.pipewire = lib.mkMerge [
|
|
||||||
(lib.mkIf (systemName == "laptop") {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
jack.enable = true;
|
|
||||||
extraConfig.pipewire = {
|
|
||||||
"92-low-latency" = {
|
|
||||||
"context.properties" = {
|
|
||||||
"default.clock.rate" = 48000;
|
|
||||||
"default.clock.allowed-rates" = [ 48000 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(lib.mkIf (systemName == "pc") {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
jack.enable = true;
|
|
||||||
extraConfig.pipewire = {
|
|
||||||
"92-low-latency" = {
|
|
||||||
"context.properties" = {
|
|
||||||
"default.clock.rate" = 96000;
|
|
||||||
"default.clock.allowed-rates" = [
|
|
||||||
44100
|
|
||||||
48000
|
|
||||||
96000
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
###############################################
|
|
||||||
# nice shit
|
|
||||||
###############################################
|
|
||||||
services.ananicy = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.ananicy-cpp;
|
alsa.enable = true;
|
||||||
rulesProvider = pkgs.ananicy-cpp;
|
alsa.support32Bit = true;
|
||||||
extraRules = [
|
pulse.enable = true;
|
||||||
{
|
jack.enable = true;
|
||||||
"name" = "gamescope";
|
extraConfig.pipewire."92-low-latency"."context.properties" =
|
||||||
"nice" = -20;
|
if isLaptop
|
||||||
|
then {
|
||||||
|
"default.clock.rate" = 48000;
|
||||||
|
"default.clock.allowed-rates" = [ 48000 ];
|
||||||
}
|
}
|
||||||
];
|
else {
|
||||||
|
"default.clock.rate" = 96000;
|
||||||
|
"default.clock.allowed-rates" = [ 44100 48000 96000 ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
services.accounts-daemon.enable = true;
|
||||||
|
|
||||||
###############################################
|
# ─── Printing & Files ───────────────────────────────────────────────────────
|
||||||
# Printing & Files
|
|
||||||
###############################################
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
services.tumbler.enable = true;
|
services.tumbler.enable = true;
|
||||||
|
|
||||||
###############################################
|
# ─── Time & Power ───────────────────────────────────────────────────────────
|
||||||
# Time & Power
|
|
||||||
###############################################
|
|
||||||
services.automatic-timezoned.enable = true;
|
services.automatic-timezoned.enable = true;
|
||||||
|
|
||||||
# Power management
|
# Power management
|
||||||
@@ -109,20 +70,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Laptop-specific lid and sleep behavior
|
# Laptop-specific lid and sleep behavior
|
||||||
services.logind.settings.Login = lib.mkIf (systemName == "laptop") {
|
services.logind.settings.Login = lib.mkIf isLaptop {
|
||||||
HandleLidSwitch = "suspend-then-hibernate";
|
HandleLidSwitch = "suspend-then-hibernate";
|
||||||
HandleLidSwitchExternalPower = "suspend-then-hibernate";
|
HandleLidSwitchExternalPower = "suspend-then-hibernate";
|
||||||
HandleLidSwitchDocked = "suspend-then-hibernate";
|
HandleLidSwitchDocked = "suspend-then-hibernate";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.sleep.extraConfig = lib.mkIf (systemName == "laptop") ''
|
systemd.sleep.extraConfig = lib.mkIf isLaptop ''
|
||||||
HibernateDelaySec=120min
|
HibernateDelaySec=120min
|
||||||
SuspendState=mem
|
SuspendState=mem
|
||||||
'';
|
'';
|
||||||
|
|
||||||
###############################################
|
# ─── Developer Tools & Services ─────────────────────────────────────────────
|
||||||
# Developer Tools & Services
|
|
||||||
###############################################
|
|
||||||
# direnv speedup
|
# direnv speedup
|
||||||
services.lorri.enable = true;
|
services.lorri.enable = true;
|
||||||
|
|
||||||
@@ -132,94 +91,56 @@
|
|||||||
package = pkgs.emacs-pgtk;
|
package = pkgs.emacs-pgtk;
|
||||||
};
|
};
|
||||||
|
|
||||||
#services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
# Sunshine (only on PC)
|
# Sunshine (only on PC)
|
||||||
services.sunshine = lib.mkIf (systemName == "pc") {
|
#services.sunshine = lib.mkIf isPc {
|
||||||
enable = false;
|
# enable = false;
|
||||||
settings = {
|
# settings = {
|
||||||
sunshine_name = "nixos";
|
# sunshine_name = "nixos";
|
||||||
port = 47989;
|
# port = 47989;
|
||||||
output_name = 0;
|
# output_name = 0;
|
||||||
};
|
# };
|
||||||
applications = {
|
# applications = {
|
||||||
apps = [
|
# apps = [
|
||||||
{
|
# {
|
||||||
name = "Steam";
|
# name = "Steam";
|
||||||
env = {
|
# env = {
|
||||||
PATH = "$(PATH):/run/current-system/sw/bin";
|
# PATH = "$(PATH):/run/current-system/sw/bin";
|
||||||
};
|
# };
|
||||||
output = "steam.txt";
|
# output = "steam.txt";
|
||||||
detached = [
|
# detached = [
|
||||||
"setsid /run/current-system/sw/bin/steam steam://open/bigpicture"
|
# "setsid /run/current-system/sw/bin/steam steam://open/bigpicture"
|
||||||
];
|
# ];
|
||||||
prep-cmd = [
|
# prep-cmd = [
|
||||||
{
|
# {
|
||||||
"do" = "";
|
# "do" = "";
|
||||||
"undo" = "setsid /run/current-system/sw/bin/steam steam://close/bigpicture";
|
# "undo" = "setsid /run/current-system/sw/bin/steam steam://close/bigpicture";
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
image-path = "steam.png";
|
# image-path = "steam.png";
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
capSysAdmin = false;
|
# capSysAdmin = false;
|
||||||
openFirewall = true;
|
# openFirewall = true;
|
||||||
};
|
#};
|
||||||
|
|
||||||
# Ollama (only on PC)
|
# Ollama (only on PC)
|
||||||
services.ollama = lib.mkIf (systemName == "pc") {
|
services.ollama = lib.mkIf isPc {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.ollama-rocm;
|
package = pkgs.ollama-vulkan;
|
||||||
port = 11434;
|
port = 11434;
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0"; # Bind to localhost only for security
|
||||||
rocmOverrideGfx = "11.0.0";
|
rocmOverrideGfx = "11.0.0";
|
||||||
environmentVariables = {
|
environmentVariables = {
|
||||||
OLLAMA_DEBUG = "1";
|
OLLAMA_NUM_CTX = "4000000000";
|
||||||
OLLAMA_MMAP = "0";
|
|
||||||
OLLAMA_NUM_CTX = "40000";
|
|
||||||
OLLAMA_NUM_GPU = "20";
|
|
||||||
OLLAMA_FLASH_ATTENTION = "true";
|
|
||||||
# HSA_OVERRIDE_GFX_VERSION = "11.0.0";
|
|
||||||
OLLAMA_KV_CACHE_TYPE = "f16";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
###############################################
|
|
||||||
# Systemd User Services
|
|
||||||
###############################################
|
|
||||||
systemd.user.services.steam-run-url-service = {
|
|
||||||
description = "Service to launch Steam URLs via FIFO";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart =
|
|
||||||
let
|
|
||||||
script = pkgs.writeShellScript "steam-run-url-service.sh" ''
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
FIFO="/run/user/$(id --user)/steam-run-url.fifo"
|
|
||||||
if [ ! -p "$FIFO" ]; then
|
|
||||||
mkfifo "$FIFO"
|
|
||||||
fi
|
|
||||||
while true; do
|
|
||||||
if read line <"$FIFO"; then
|
|
||||||
steam_env=();
|
|
||||||
if [ "$XDG_SESSION_DESKTOP" = "sway" ] || [ "$XDG_SESSION_DESKTOP" = "Hyprland" ] || [ "$DESKTOP_SESSION" = "sway" ] || [ "$DESKTOP_SESSION" = "Hyprland" ]; then
|
|
||||||
steam_env+=("QT_QPA_PLATFORM=wayland");
|
|
||||||
fi
|
|
||||||
steam "$line"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
"${script}";
|
|
||||||
Restart = "always";
|
|
||||||
};
|
|
||||||
path = [ pkgs.steam ];
|
|
||||||
};
|
|
||||||
|
|
||||||
###############################################
|
|
||||||
# Networking & Remote
|
# ─── Networking & Remote ────────────────────────────────────────────────────
|
||||||
###############################################
|
|
||||||
# services.resolved = {
|
# services.resolved = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# dnssec = "true";
|
# dnssec = "true";
|
||||||
@@ -231,14 +152,10 @@
|
|||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
###############################################
|
# ─── Virtualization ─────────────────────────────────────────────────────────
|
||||||
# Virtualization
|
|
||||||
###############################################
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
###############################################
|
# ─── Udev Rules ─────────────────────────────────────────────────────────────
|
||||||
# Udev Rules
|
|
||||||
###############################################
|
|
||||||
services.udev.packages = [
|
services.udev.packages = [
|
||||||
pkgs.platformio-core
|
pkgs.platformio-core
|
||||||
pkgs.platformio
|
pkgs.platformio
|
||||||
|
|||||||
@@ -9,41 +9,38 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
isLaptop = systemName == "laptop";
|
||||||
|
isPc = systemName == "pc";
|
||||||
|
|
||||||
oreo = pkgs.callPackage ./personalPKGS/oreo.nix { };
|
oreo = pkgs.callPackage ./personalPKGS/oreo.nix { };
|
||||||
|
|
||||||
# Window manager toggles
|
# Window manager toggles
|
||||||
wmAll = window_manager == "all";
|
wmAll = window_manager == "all";
|
||||||
useRiver = window_manager == "river" || wmAll;
|
|
||||||
useNiri = window_manager == "niri" || wmAll;
|
useNiri = window_manager == "niri" || wmAll;
|
||||||
useHypr = window_manager == "hyprland" || wmAll;
|
useHypr = window_manager == "hyprland" || wmAll;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
# greetd + tuigreet
|
# greetd + tuigreet
|
||||||
services.greetd = {
|
#services.greetd = {
|
||||||
enable = true;
|
|
||||||
restart = true;
|
|
||||||
useTextGreeter = true;
|
|
||||||
settings.default_session = {
|
|
||||||
command = "${lib.getExe pkgs.tuigreet} --window-padding 1 --time --time-format '%R - %F' --remember --remember-session --asterisks";
|
|
||||||
user = "greeter";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#services.displayManager.dms-greeter = {
|
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# compositor.name = "hyprland"; # Or "hyprland" or "sway"
|
# restart = true;
|
||||||
# configHome = "${config.users.users.mrfluffy.home}";
|
# useTextGreeter = true;
|
||||||
|
# settings.default_session = {
|
||||||
|
# command = "${lib.getExe pkgs.tuigreet} --window-padding 1 --time --time-format '%R - %F' --remember --remember-session --asterisks";
|
||||||
|
# user = "greeter";
|
||||||
|
# };
|
||||||
#};
|
#};
|
||||||
|
services.displayManager.dms-greeter = {
|
||||||
|
enable = true;
|
||||||
|
compositor.name = "niri"; # Or "hyprland" or "sway"
|
||||||
|
configHome = "${config.users.users.mrfluffy.home}";
|
||||||
|
};
|
||||||
#services.displayManager.cosmic-greeter.enable = true;
|
#services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
|
||||||
##############################################################################
|
# ─── Desktop / WM ───────────────────────────────────────────────────────────
|
||||||
# Desktop / WM
|
|
||||||
##############################################################################
|
|
||||||
programs.river-classic.enable = useRiver;
|
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
platformTheme = "qt5ct";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.menus.enable = true;
|
xdg.menus.enable = true;
|
||||||
@@ -52,12 +49,10 @@ in
|
|||||||
environment.etc."/xdg/menus/applications.menu".text =
|
environment.etc."/xdg/menus/applications.menu".text =
|
||||||
builtins.readFile "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
builtins.readFile "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
||||||
|
|
||||||
# Niri (via overlay)
|
# Niri
|
||||||
#nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
programs.niri = {
|
||||||
#programs.niri = {
|
enable = useNiri;
|
||||||
# enable = useNiri;
|
};
|
||||||
# package = pkgs.niri-stable; # Only needed if not provided by the overlay
|
|
||||||
#};
|
|
||||||
|
|
||||||
# Hyprland
|
# Hyprland
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
@@ -89,26 +84,22 @@ in
|
|||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
##############################################################################
|
# ─── Security / PolicyKit / PAM ─────────────────────────────────────────────
|
||||||
# Security / PolicyKit / PAM
|
|
||||||
##############################################################################
|
|
||||||
security = {
|
security = {
|
||||||
rtkit.enable = true;
|
rtkit.enable = true;
|
||||||
polkit.enable = true;
|
polkit.enable = true;
|
||||||
pam.services = {
|
pam.services = {
|
||||||
swaylock = { };
|
swaylock = { };
|
||||||
greetd.enableGnomeKeyring = true;
|
greetd.enableGnomeKeyring = true;
|
||||||
greetd.kwallet.enable = true;
|
login.enableGnomeKeyring = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
##############################################################################
|
# ─── Virtualisation ─────────────────────────────────────────────────────────
|
||||||
# Virtualisation
|
|
||||||
##############################################################################
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker = {
|
docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
storageDriver = lib.mkIf (systemName == "pc") "btrfs";
|
storageDriver = lib.mkIf isPc "btrfs";
|
||||||
};
|
};
|
||||||
libvirtd.enable = true;
|
libvirtd.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user