niri not seeming good, switching to hyprland

This commit is contained in:
valerie 2024-08-25 14:51:12 -04:00
parent 4cf5cd8fc5
commit 29529757b4
Signed by: valnyx
GPG key ID: CC10324DD962CB7E
10 changed files with 496 additions and 170 deletions

View file

@ -19,6 +19,120 @@
"type": "github" "type": "github"
} }
}, },
"base16": {
"inputs": {
"fromYaml": "fromYaml"
},
"locked": {
"lastModified": 1708890466,
"narHash": "sha256-LlrC09LoPi8OPYOGPXegD72v+//VapgAqhbOFS3i8sc=",
"owner": "SenchoPens",
"repo": "base16.nix",
"rev": "665b3c6748534eb766c777298721cece9453fdae",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "base16.nix",
"type": "github"
}
},
"base16-fish": {
"flake": false,
"locked": {
"lastModified": 1622559957,
"narHash": "sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA=",
"owner": "tomyun",
"repo": "base16-fish",
"rev": "2f6dd973a9075dabccd26f1cded09508180bf5fe",
"type": "github"
},
"original": {
"owner": "tomyun",
"repo": "base16-fish",
"type": "github"
}
},
"base16-foot": {
"flake": false,
"locked": {
"lastModified": 1696725948,
"narHash": "sha256-65bz2bUL/yzZ1c8/GQASnoiGwaF8DczlxJtzik1c0AU=",
"owner": "tinted-theming",
"repo": "base16-foot",
"rev": "eedbcfa30de0a4baa03e99f5e3ceb5535c2755ce",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-foot",
"type": "github"
}
},
"base16-helix": {
"flake": false,
"locked": {
"lastModified": 1720809814,
"narHash": "sha256-numb3xigRGnr/deF7wdjBwVg7fpbTH7reFDkJ75AJkY=",
"owner": "tinted-theming",
"repo": "base16-helix",
"rev": "34f41987bec14c0f3f6b2155c19787b1f6489625",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-helix",
"type": "github"
}
},
"base16-kitty": {
"flake": false,
"locked": {
"lastModified": 1665001328,
"narHash": "sha256-aRaizTYPpuWEcvoYE9U+YRX+Wsc8+iG0guQJbvxEdJY=",
"owner": "kdrag0n",
"repo": "base16-kitty",
"rev": "06bb401fa9a0ffb84365905ffbb959ae5bf40805",
"type": "github"
},
"original": {
"owner": "kdrag0n",
"repo": "base16-kitty",
"type": "github"
}
},
"base16-tmux": {
"flake": false,
"locked": {
"lastModified": 1696725902,
"narHash": "sha256-wDPg5elZPcQpu7Df0lI5O8Jv4A3T6jUQIVg63KDU+3Q=",
"owner": "tinted-theming",
"repo": "base16-tmux",
"rev": "c02050bebb60dbb20cb433cd4d8ce668ecc11ba7",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-tmux",
"type": "github"
}
},
"base16-vim": {
"flake": false,
"locked": {
"lastModified": 1716150083,
"narHash": "sha256-ZMhnNmw34ogE5rJZrjRv5MtG3WaqKd60ds2VXvT6hEc=",
"owner": "tinted-theming",
"repo": "base16-vim",
"rev": "6e955d704d046b0dc3e5c2d68a2a6eeffd2b5d3d",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-vim",
"type": "github"
}
},
"cachix": { "cachix": {
"inputs": { "inputs": {
"devenv": [ "devenv": [
@ -351,6 +465,22 @@
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
} }
}, },
"flake-compat_4": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
@ -564,6 +694,43 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_7": {
"inputs": {
"systems": [
"stylix",
"systems"
]
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"fromYaml": {
"flake": false,
"locked": {
"lastModified": 1689549921,
"narHash": "sha256-iX0pk/uB019TdBGlaJEWvBCfydT6sRq+eDcGPifVsCM=",
"owner": "SenchoPens",
"repo": "fromYaml",
"rev": "11fbbbfb32e3289d3c631e0134a23854e7865c84",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "fromYaml",
"type": "github"
}
},
"gitignore": { "gitignore": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -636,6 +803,23 @@
"type": "github" "type": "github"
} }
}, },
"gnome-shell": {
"flake": false,
"locked": {
"lastModified": 1713702291,
"narHash": "sha256-zYP1ehjtcV8fo+c+JFfkAqktZ384Y+y779fzmR9lQAU=",
"owner": "GNOME",
"repo": "gnome-shell",
"rev": "0d0aadf013f78a7f7f1dc984d0d812971864b934",
"type": "github"
},
"original": {
"owner": "GNOME",
"ref": "46.1",
"repo": "gnome-shell",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -656,6 +840,27 @@
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1715930644,
"narHash": "sha256-W9pyM3/vePxrffHtzlJI6lDS3seANQ+Nqp+i58O46LI=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "e3ad5108f54177e6520535768ddbf1e6af54b59d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nh": { "nh": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -875,6 +1080,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_10": {
"locked": {
"lastModified": 1714912032,
"narHash": "sha256-clkcOIkg8G4xuJh+1onLG4HPMpbtzdLv4rHxFzgsH9c=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ee4a6e0f566fe5ec79968c57a9c2c3c25f2cf41d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1700612854, "lastModified": 1700612854,
@ -1114,7 +1335,38 @@
"niri": "niri", "niri": "niri",
"nix-gaming": "nix-gaming", "nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs_9", "nixpkgs": "nixpkgs_9",
"nixpkgs-unstable": "nixpkgs-unstable" "nixpkgs-unstable": "nixpkgs-unstable",
"stylix": "stylix"
}
},
"stylix": {
"inputs": {
"base16": "base16",
"base16-fish": "base16-fish",
"base16-foot": "base16-foot",
"base16-helix": "base16-helix",
"base16-kitty": "base16-kitty",
"base16-tmux": "base16-tmux",
"base16-vim": "base16-vim",
"flake-compat": "flake-compat_4",
"flake-utils": "flake-utils_7",
"gnome-shell": "gnome-shell",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_10",
"systems": "systems_8"
},
"locked": {
"lastModified": 1724444244,
"narHash": "sha256-fH1lyJvJjUhZ8xMlmiI18EZNzodDSe74rFuwlZDL0aQ=",
"owner": "danth",
"repo": "stylix",
"rev": "d042af478ce87e188139480922a3085218194106",
"type": "github"
},
"original": {
"owner": "danth",
"repo": "stylix",
"type": "github"
} }
}, },
"systems": { "systems": {
@ -1222,6 +1474,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_8": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"umu": { "umu": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [

View file

@ -31,6 +31,8 @@
}; };
ags.url = "github:Aylur/ags"; ags.url = "github:Aylur/ags";
stylix.url = "github:danth/stylix";
}; };
outputs = { outputs = {
@ -40,7 +42,8 @@
home-manager, home-manager,
flake-utils, flake-utils,
... ...
} @ inputs: { } @ inputs:
{
nixosConfigurations.waves = nixpkgs.lib.nixosSystem { nixosConfigurations.waves = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit (self) outputs; inherit (self) outputs;
@ -48,7 +51,7 @@
}; };
modules = [ modules = [
inputs.disko.nixosModules.default inputs.disko.nixosModules.default
(import ./disko.nix {device="/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_with_Heatsink_1TB_S6WSNJ0T900943T";}) (import ./disko.nix {device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_with_Heatsink_1TB_S6WSNJ0T900943T";})
./waves.nix ./waves.nix
]; ];
}; };
@ -56,7 +59,7 @@
overlays = import ./overlays {inherit inputs;}; overlays = import ./overlays {inherit inputs;};
homeConfigurations."dv@waves" = home-manager.lib.homeManagerConfiguration { homeConfigurations."dv@waves" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs {system = "x86_64-linux";};
extraSpecialArgs = { extraSpecialArgs = {
inherit (self) outputs; inherit (self) outputs;
inherit inputs flake-utils; inherit inputs flake-utils;
@ -64,15 +67,17 @@
modules = [ modules = [
inputs.niri.homeModules.niri inputs.niri.homeModules.niri
inputs.stylix.homeManagerModules.stylix
# inputs.niri.homeModules.config # inputs.niri.homeModules.config
./modules/home/dv.nix ./modules/home/dv.nix
]; ];
}; };
} // flake-utils.lib.eachDefaultSystem(system: let }
// flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
inherit (self) outputs; inherit (self) outputs;
in { in {
packages = (import ./pkgs pkgs); packages = import ./pkgs pkgs;
apps = { apps = {
"disko" = { "disko" = {
@ -82,7 +87,5 @@
}; };
formatter = pkgs.alejandra; formatter = pkgs.alejandra;
}); });
} }

View file

@ -9,7 +9,7 @@
unstable.bruno unstable.bruno
unstable.xclip unstable.xclip
unstable.just unstable.just
unstable.nil unstable.nixd
unstable.alejandra unstable.alejandra
unstable.zoxide unstable.zoxide
unstable.neovide unstable.neovide

View file

@ -1,7 +1,15 @@
{pkgs, lib, config, inputs, outputs, ...}: { {
pkgs,
lib,
config,
inputs,
outputs,
...
}: {
imports = [ imports = [
./services.nix ./services.nix
./programs.nix ./programs.nix
./stylix.nix
# development # development
./dev ./dev
# terminal # terminal

View file

@ -1,6 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = with pkgs; [ home.packages = with pkgs; [
noto-fonts noto-fonts
julia-mono
noto-fonts-emoji noto-fonts-emoji
material-design-icons material-design-icons
cozette cozette

View file

@ -107,6 +107,10 @@
{ {
"Mod+T".action = spawn "wezterm"; "Mod+T".action = spawn "wezterm";
"Mod+D".action = spawn "fuzzel"; "Mod+D".action = spawn "fuzzel";
"Mod+J".action = focus-window-or-workspace-down;
"Mod+K".action = focus-window-or-workspace-up;
"Mod+Ctrl+J".action = move-window-down-or-to-workspace-down;
"Mod+Ctrl+K".action = move-window-up-or-to-workspace-up;
} }
]; ];
}; };

20
modules/home/stylix.nix Normal file
View file

@ -0,0 +1,20 @@
{
pkgs,
inputs,
...
}: {
imports = [
inputs.niri.homeModules.stylix
];
stylix.targets.niri.enable = true;
stylix.image = ./wallhaven-expk3o.png;
stylix.polarity = "dark";
stylix.base16Scheme = builtins.readFile (pkgs.fetchFromGitHub {
owner = "camellia-theme";
repo = "camellia";
rev = "3b319bb337caccc311e60c3a8d357c4431b63680";
hash = "sha256-HNdGHJ8n81HpVK9gFiRLZBBh0sz4FIUUx/ykGyoxv0c=";
}
+ "/ports/base16/camelliaHopeDark.yml");
stylix.autoEnable = true;
}

View file

@ -5,8 +5,15 @@
}: let }: let
pst = pkgs.writeShellScriptBin "pst" (builtins.readFile ./pst); pst = pkgs.writeShellScriptBin "pst" (builtins.readFile ./pst);
in { in {
xdg.configFile."wezterm/colors/camellia-hope-dark.toml".text = builtins.readFile (pkgs.fetchFromGitHub {
owner = "camellia-theme";
repo = "camellia";
rev = "3b319bb337caccc311e60c3a8d357c4431b63680";
hash = "sha256-HNdGHJ8n81HpVK9gFiRLZBBh0sz4FIUUx/ykGyoxv0c=";
}
+ "/ports/wezterm/colors/camelliaHopeDark.toml");
programs = { programs = {
wezterm = { wezterm = {
enable = true; enable = true;
extraConfig = builtins.readFile ./wezterm.lua; extraConfig = builtins.readFile ./wezterm.lua;
}; };
@ -39,18 +46,29 @@ wezterm = {
flavor.use = "tokyo-night"; flavor.use = "tokyo-night";
opener = { opener = {
edit = [ edit = [
{ run = ''nvim "$@"''; block = true; for = "unix";} {
run = ''nvim "$@"'';
block = true;
for = "unix";
}
]; ];
play = [ play = [
{ run = ''mpv "$@"''; orphan = true; for = "unix";} {
run = ''mpv "$@"'';
orphan = true;
for = "unix";
}
]; ];
open = [ open = [
{ run = ''xdg-open "$@"''; desc = "Open";} {
run = ''xdg-open "$@"'';
desc = "Open";
}
]; ];
}; };
}; };
}; };
tmux = { tmux = {
enable = true; enable = true;
mouse = true; mouse = true;
prefix = "C-Space"; prefix = "C-Space";
@ -59,23 +77,23 @@ tmux = {
plugins = with pkgs.tmuxPlugins; [ plugins = with pkgs.tmuxPlugins; [
vim-tmux-navigator vim-tmux-navigator
yank yank
# { # {
# plugin = tokyo-night-tmux; # plugin = tokyo-night-tmux;
# extraConfig = '' # extraConfig = ''
## tokyo night tmux config ## tokyo night tmux config
#set -g @tokyo-night-tmux_theme "night" #set -g @tokyo-night-tmux_theme "night"
#set -g @tokyo-night-tmux_show_datetime 0 #set -g @tokyo-night-tmux_show_datetime 0
#set -g @tokyo-night-tmux_path_format relative #set -g @tokyo-night-tmux_path_format relative
#set -g @tokyo-night-tmux_window_id_style digital #set -g @tokyo-night-tmux_window_id_style digital
#set -g @tokyo-night-tmux_pane_id_style hide #set -g @tokyo-night-tmux_pane_id_style hide
#set -g @tokyo-night-tmux_show_git 0 #set -g @tokyo-night-tmux_show_git 0
# #
## Undercurl fixes (tokyonight.nvim) ## Undercurl fixes (tokyonight.nvim)
#set -g default-terminal "${TERM}" #set -g default-terminal "${TERM}"
#set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support #set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
#set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux 3.0 #set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux 3.0
# ''; # '';
# } # }
]; ];
extraConfig = '' extraConfig = ''
set-option -sa terminal-overrides ",xterm*:Tc" set-option -sa terminal-overrides ",xterm*:Tc"
@ -103,10 +121,12 @@ tmux = {
bind '_' split-window -v -c "#{pane_current_path}" bind '_' split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}" bind | split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}"
run '~/.tmux/plugins/tpm/tpm'
''; '';
}; };
}; };
xdg.configFile."lf/icons".source = ./lf-icons; xdg.configFile."lf/icons".source = ./lf-icons;
programs.bat.enable = true; programs.bat.enable = true;
programs.eza.enable = true; programs.eza.enable = true;
programs.man.enable = true; programs.man.enable = true;
@ -297,7 +317,7 @@ xdg.configFile."lf/icons".source = ./lf-icons;
lazygit = "gitui"; lazygit = "gitui";
ps = "procs"; ps = "procs";
du = "dust"; du = "dust";
df= "duf"; df = "duf";
cdr = "cd \$(git rev-parse --show-toplevel)"; cdr = "cd \$(git rev-parse --show-toplevel)";
l = "eza -al --no-time --group-directories-first"; l = "eza -al --no-time --group-directories-first";
ls = "eza -al --no-time --group-directories-first"; ls = "eza -al --no-time --group-directories-first";

View file

@ -2,7 +2,7 @@ local wezterm = require("wezterm")
local config = wezterm.config_builder() local config = wezterm.config_builder()
config.color_scheme = "Tokyo Night Moon" config.color_scheme = "camellia-hope-dark"
config.use_fancy_tab_bar = false config.use_fancy_tab_bar = false
config.window_decorations = "RESIZE" config.window_decorations = "RESIZE"
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true
@ -11,9 +11,12 @@ config.hide_tab_bar_if_only_one_tab = true
-- weight = "Regular", -- weight = "Regular",
-- }) -- })
config.font = wezterm.font_with_fallback({ config.font = wezterm.font_with_fallback({
{ family = "Rec Mono Waves", weight = "Regular" }, -- { family = "Rec Mono Waves", weight = "Regular" },
{ family = "JuliaMono", weight = "Regular" },
-- "CozetteHiDpi",
"Symbols Nerd Font Mono", "Symbols Nerd Font Mono",
}) })
config.font_size = 10
-- config.cell_width = 0.88 -- config.cell_width = 0.88
config.set_environment_variables = { config.set_environment_variables = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB