mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: Add sdcv
This commit is contained in:
parent
608cd05802
commit
a9d8bcb500
16 changed files with 267 additions and 112 deletions
|
|
@ -49,6 +49,7 @@ xwayland {
|
||||||
# Format:
|
# Format:
|
||||||
# MONITOR_NAME,RESOLUTION@REFRESH_RATE,OFFSET_XxOFFSET_Y,SCALE
|
# MONITOR_NAME,RESOLUTION@REFRESH_RATE,OFFSET_XxOFFSET_Y,SCALE
|
||||||
monitor=DP-2,3840x2160@60,0x0,1.667
|
monitor=DP-2,3840x2160@60,0x0,1.667
|
||||||
|
monitor=eDP-1,disable
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
|
@ -72,7 +73,7 @@ monitor=DP-2,3840x2160@60,0x0,1.667
|
||||||
# Top Bar
|
# Top Bar
|
||||||
exec-once = waybar &
|
exec-once = waybar &
|
||||||
# Notifications
|
# Notifications
|
||||||
exec-once = dunst &
|
# exec-once = dunst &
|
||||||
# exec-once = hyprpanel &
|
# exec-once = hyprpanel &
|
||||||
# wallpapers
|
# wallpapers
|
||||||
exec-once = swww-daemon &
|
exec-once = swww-daemon &
|
||||||
|
|
@ -86,8 +87,6 @@ exec-once = wl-paste --watch cliphist store
|
||||||
# exec-once = QT_SCALE_FACTOR=1 albert &
|
# exec-once = QT_SCALE_FACTOR=1 albert &
|
||||||
# Bluetooth Manager
|
# Bluetooth Manager
|
||||||
exec-once = blueman-applet &
|
exec-once = blueman-applet &
|
||||||
# Time Tracker
|
|
||||||
exec-once = aw-qt &
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -137,7 +136,7 @@ general {
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 0
|
rounding = 20
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
# Change transparency of focused and unfocused windows
|
||||||
# active_opacity = 1
|
# active_opacity = 1
|
||||||
|
|
@ -235,12 +234,12 @@ input {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# gesture = 4, horizontal, workspace
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||||
# gestures {
|
gestures {
|
||||||
# workspace_swipe = true
|
workspace_swipe = true
|
||||||
# workspace_swipe_fingers = 4
|
workspace_swipe_fingers = 4
|
||||||
# }
|
}
|
||||||
gesture = 4, horizontal, workspace
|
|
||||||
|
|
||||||
# Example per-device config
|
# Example per-device config
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||||
|
|
@ -248,6 +247,10 @@ gesture = 4, horizontal, workspace
|
||||||
# name = epic-mouse-v1
|
# name = epic-mouse-v1
|
||||||
# sensitivity = -0.5
|
# sensitivity = -0.5
|
||||||
# }
|
# }
|
||||||
|
# gesture = 3, horizontal, workspace
|
||||||
|
# gesture = 3, down, mod: ALT, close
|
||||||
|
# gesture = 3, up, mod: SUPER, scale: 1.5, fullscreen
|
||||||
|
# gesture = 3, left, scale: 1.5, float
|
||||||
|
|
||||||
windowrulev2 = opaque, workspace:2
|
windowrulev2 = opaque, workspace:2
|
||||||
|
|
||||||
|
|
|
||||||
105
nixcfgs/flake.lock
generated
105
nixcfgs/flake.lock
generated
|
|
@ -1,5 +1,51 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"caelestia-cli": {
|
||||||
|
"inputs": {
|
||||||
|
"caelestia-shell": [
|
||||||
|
"caelestia-shell"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"caelestia-shell",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760147156,
|
||||||
|
"narHash": "sha256-ad+1gnp7Lm7jVSzqvGjMiwnA0P61dFZmp6HcRMXicWY=",
|
||||||
|
"owner": "caelestia-dots",
|
||||||
|
"repo": "cli",
|
||||||
|
"rev": "e9668d58f51e935094e50090b99301df8344f590",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "caelestia-dots",
|
||||||
|
"repo": "cli",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"caelestia-shell": {
|
||||||
|
"inputs": {
|
||||||
|
"caelestia-cli": "caelestia-cli",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"quickshell": "quickshell"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760497394,
|
||||||
|
"narHash": "sha256-/4Hf/irgPh+gRQAcCNjXyXFcUGOrXMX8+OtOwbscbXk=",
|
||||||
|
"owner": "caelestia-dots",
|
||||||
|
"repo": "shell",
|
||||||
|
"rev": "4cb1048fdd6fa281baa0efa36c8c82ddd2cc43a3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "caelestia-dots",
|
||||||
|
"repo": "shell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
|
|
@ -127,6 +173,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1758690382,
|
||||||
|
"narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e643668fd71b949c53f8626614b21ff71a07379d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
|
|
@ -169,15 +231,38 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"quickshell": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"caelestia-shell",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760228179,
|
||||||
|
"narHash": "sha256-4Z6k7lv3Zcgk3K+4h60LpqB9wCkR+utkYERU735U068=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "c9d3ffb6043c5bf3f3009202bad7e0e5132c4a25",
|
||||||
|
"revCount": 693,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"caelestia-shell": "caelestia-shell",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"plasma-manager": "plasma-manager"
|
"plasma-manager": "plasma-manager",
|
||||||
|
"winboat": "winboat"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
|
@ -194,6 +279,24 @@
|
||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"winboat": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760625716,
|
||||||
|
"narHash": "sha256-Lf8kR10j/VDlNBfLJENA7jDUPOYfAd0ZUqPwyMncO2M=",
|
||||||
|
"owner": "TibixDev",
|
||||||
|
"repo": "winboat",
|
||||||
|
"rev": "dab50fb60487f7d47d82c6857c7be9582314c481",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "TibixDev",
|
||||||
|
"repo": "winboat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,14 @@
|
||||||
inputs.home-manager.follows = "home-manager";
|
inputs.home-manager.follows = "home-manager";
|
||||||
};
|
};
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
winboat.url = "github:TibixDev/winboat";
|
||||||
|
caelestia-shell = {
|
||||||
|
url = "github:caelestia-dots/shell";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{
|
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nix-flatpak,
|
nix-flatpak,
|
||||||
|
|
@ -31,12 +35,17 @@
|
||||||
home-manager,
|
home-manager,
|
||||||
plasma-manager,
|
plasma-manager,
|
||||||
nur,
|
nur,
|
||||||
|
winboat,
|
||||||
|
caelestia-shell,
|
||||||
...
|
...
|
||||||
}@inputs:
|
} @ inputs: let
|
||||||
let
|
overlays = [
|
||||||
overlays = [ nur.overlays.default ];
|
nur.overlays.default
|
||||||
forSystem =
|
(final: prev: {
|
||||||
system:
|
winboat = winboat.packages.x86_64-linux.winboat;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
forSystem = system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
@ -48,17 +57,13 @@
|
||||||
"nixvirt"
|
"nixvirt"
|
||||||
];
|
];
|
||||||
|
|
||||||
mkNixosSystem =
|
mkNixosSystem = hostname:
|
||||||
hostname:
|
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
modules = [./hosts/${hostname}];
|
modules = [./hosts/${hostname}];
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
|
|
||||||
# This will automatically generate nixOS config for `nixosHosts'
|
# This will automatically generate nixOS config for `nixosHosts'
|
||||||
# Include the module ./hosts/${hostname} by default.
|
# Include the module ./hosts/${hostname} by default.
|
||||||
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
|
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,8 @@
|
||||||
../../modules/nixos/chromium.nix
|
../../modules/nixos/chromium.nix
|
||||||
../../modules/nixos/obs-studio.nix
|
../../modules/nixos/obs-studio.nix
|
||||||
../../modules/nixos/wine.nix
|
../../modules/nixos/wine.nix
|
||||||
../../modules/nixos/desktop/gnome.nix
|
|
||||||
../../modules/nixos/desktop/niri.nix
|
|
||||||
../../modules/nixos/desktop/kde.nix
|
../../modules/nixos/desktop/kde.nix
|
||||||
|
../../modules/nixos/desktop/hyprland.nix
|
||||||
../../modules/nixos/display-manager/sddm.nix
|
../../modules/nixos/display-manager/sddm.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./keyd.nix
|
./keyd.nix
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,7 @@
|
||||||
chromium
|
chromium
|
||||||
nil
|
nil
|
||||||
nixd
|
nixd
|
||||||
|
libnotify
|
||||||
|
imagemagick
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{pkgs, ...}: {
|
{...}: {
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
homepageLocation = "https://duckduckgo.com";
|
homepageLocation = "https://duckduckgo.com";
|
||||||
|
|
|
||||||
4
nixcfgs/modules/nixos/desktop/cosmic.nix
Normal file
4
nixcfgs/modules/nixos/desktop/cosmic.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{...}: {
|
||||||
|
services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,22 @@
|
||||||
{...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withUWSM = false;
|
withUWSM = false;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
inputs.caelestia-shell.packages.x86_64-linux.default
|
||||||
|
pkgs.mako
|
||||||
|
pkgs.rofi-wayland
|
||||||
|
pkgs.xdg-desktop-portal-wlr
|
||||||
|
pkgs.xdg-desktop-portal-hyprland
|
||||||
|
pkgs.hyprpolkitagent
|
||||||
|
pkgs.cliphist
|
||||||
|
pkgs.grimblast
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,6 @@
|
||||||
file
|
file
|
||||||
unzip
|
unzip
|
||||||
zip
|
zip
|
||||||
|
pkg-config
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
nixcfgs/modules/nixos/winboat.nix
Normal file
5
nixcfgs/modules/nixos/winboat.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{inputs, ...}: {
|
||||||
|
environment.systemPackages = [
|
||||||
|
inputs.winboat
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs;
|
||||||
|
[
|
||||||
kitty
|
kitty
|
||||||
ghostty
|
ghostty
|
||||||
alacritty
|
alacritty
|
||||||
|
|
@ -11,8 +12,10 @@
|
||||||
pcloud
|
pcloud
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
steam
|
steam
|
||||||
jetbrains.idea-ultimate
|
(jetbrains.idea-ultimate.override {
|
||||||
jetbrains.rider
|
vmopts = ''-Dawt.toolkit.name=WLToolkit'';})
|
||||||
|
(jetbrains.rider.override {
|
||||||
|
vmopts = ''-Dawt.toolkit.name=WLToolkit'';})
|
||||||
warp-terminal
|
warp-terminal
|
||||||
# clash-verge-rev
|
# clash-verge-rev
|
||||||
haruna
|
haruna
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
config = {
|
config = {
|
||||||
General = {
|
General = {
|
||||||
launchers = [
|
launchers = [
|
||||||
"applications:org.kde.dolphin.desktop"
|
# "applications:org.kde.dolphin.desktop"
|
||||||
"applications:firefox.desktop"
|
"applications:firefox.desktop"
|
||||||
"applications:com.mitchellh.ghostty.desktop"
|
"applications:com.mitchellh.ghostty.desktop"
|
||||||
];
|
];
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
profiles = {
|
profiles = {
|
||||||
Default = {
|
Default = {
|
||||||
command = "${pkgs.fish}/bin/fish";
|
command = "${pkgs.fish}/bin/fish";
|
||||||
colorScheme = "Breeze";
|
colorScheme = "catppuccin-mocha";
|
||||||
font = {
|
font = {
|
||||||
name = "Maple Mono NF";
|
name = "Maple Mono NF";
|
||||||
size = 12;
|
size = 12;
|
||||||
|
|
|
||||||
9
nixcfgs/users/js0ny/programs/sdcv.nix
Normal file
9
nixcfgs/users/js0ny/programs/sdcv.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
sdcv
|
||||||
|
];
|
||||||
|
home.sessionVariables = {
|
||||||
|
STARDICT_DATA_DIR = "$HOME/.local/share/stardict/dic";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{...}: let
|
||||||
let
|
|
||||||
commonAliases = {
|
commonAliases = {
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
g = "lazygit";
|
g = "lazygit";
|
||||||
|
|
@ -8,9 +7,10 @@ let
|
||||||
ii = "open";
|
ii = "open";
|
||||||
c = "code";
|
c = "code";
|
||||||
aic = "aichat -s";
|
aic = "aichat -s";
|
||||||
|
aicc = "aichat -c";
|
||||||
|
nrs = "sudo nixos-rebuild switch --flake ~/.dotfiles/nixcfgs";
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interactiveShellInit = "set fish_greeting";
|
interactiveShellInit = "set fish_greeting";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
nix-flatpak,
|
nix-flatpak,
|
||||||
plasma-manager,
|
plasma-manager,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
my-catppuccin-kde = pkgs.catppuccin-kde.override {
|
my-catppuccin-kde = pkgs.catppuccin-kde.override {
|
||||||
flavour = [
|
flavour = [
|
||||||
"mocha"
|
"mocha"
|
||||||
|
|
@ -17,7 +18,8 @@
|
||||||
accents = [ "pink" ];
|
accents = [ "pink" ];
|
||||||
variant = "mocha";
|
variant = "mocha";
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./default.nix
|
./default.nix
|
||||||
./packages/cli.nix
|
./packages/cli.nix
|
||||||
|
|
@ -33,6 +35,7 @@ in {
|
||||||
./programs/firefox.nix
|
./programs/firefox.nix
|
||||||
./programs/distrobox.nix
|
./programs/distrobox.nix
|
||||||
./programs/mime.nix
|
./programs/mime.nix
|
||||||
|
./programs/sdcv.nix
|
||||||
./programs/zed-editor.nix
|
./programs/zed-editor.nix
|
||||||
# ./programs/floorp.nix
|
# ./programs/floorp.nix
|
||||||
../../modules/home/gnome-keyrings.nix
|
../../modules/home/gnome-keyrings.nix
|
||||||
|
|
@ -55,6 +58,8 @@ in {
|
||||||
my-catppuccin-gtk
|
my-catppuccin-gtk
|
||||||
my-catppuccin-kde
|
my-catppuccin-kde
|
||||||
catppuccin-fcitx5
|
catppuccin-fcitx5
|
||||||
|
freerdp
|
||||||
|
winboat
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.05";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue