This commit is contained in:
cnst
2024-08-03 21:41:31 +02:00
parent 07958aa39d
commit 69d3761bc1
18 changed files with 168 additions and 2687 deletions

View File

@@ -1,6 +1,8 @@
# Personal nix config # Personal nix config
Inspired by *(stolen from)* the following: If you plan to yank anything from here, don't, go to the sources below. And remember to give credit where its due :-)
Inspired by _(stolen from)_ the following:
- [Misterio77](https://github.com/Misterio77/nix-config.git) - [Misterio77](https://github.com/Misterio77/nix-config.git)
- [colemickens](https://github.com/colemickens/nixcfg.git) - [colemickens](https://github.com/colemickens/nixcfg.git)

20
flake.lock generated
View File

@@ -159,11 +159,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722640618, "lastModified": 1722691037,
"narHash": "sha256-zcABhEN4wv0Z6KnZGaKA/diM7aYL4rjRT9bdq1MEpi4=", "narHash": "sha256-JJhGg0ew5X9xDZXcfeFJvssCwuK2gBNNNNQDpxiiyQc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "flake-firefox-nightly", "repo": "flake-firefox-nightly",
"rev": "6a744f57d756184840f59281a7da88e00b13f030", "rev": "68f73d9684c9cf93256936de23dfc87810407b61",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -577,11 +577,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1722633380, "lastModified": 1722686530,
"narHash": "sha256-rVyikfYJjkSB7990fLwABjrhVM4UOmci7rxYpRT/6dI=", "narHash": "sha256-O0KIyfR3apBJ2wttOx2LRXB7XS6ysV+1bRhMh6vU6Os=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "4141e6755022edc19cd37cd7ad077a93b3bae5bd", "rev": "9f5a57ff4569db57372bd86bd48add85a3a1a5e4",
"revCount": 5045, "revCount": 5046,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"
@@ -993,11 +993,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1722531900, "lastModified": 1722605918,
"narHash": "sha256-COtoy+Y/j2QLX818mRI7BweRJOltf0bndxbps/eoH0s=", "narHash": "sha256-eWVY6hM2IlxRIVUgKBlPCX4pJ1Nmh3Nvw/Io2LaE0Y4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "7c39d77b9f1fbcbd8f2a575c4f2948dd54efc5c1", "rev": "0bc169903705c94fda7934ecc27dd9038ad5f0e9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -1,5 +1,5 @@
{ {
description = "My NixOS"; description = "My (i.e. fufexan's) NixOS flake configuration";
outputs = inputs: outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} { inputs.flake-parts.lib.mkFlake {inherit inputs;} {
@@ -26,9 +26,18 @@
inputs = { inputs = {
# Nix environs # Nix environs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# nixpkgs-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
systems.url = "github:nix-systems/default-linux"; systems.url = "github:nix-systems/default-linux";
hardware.url = "github:nixos/nixos-hardware"; hardware.url = "github:nixos/nixos-hardware";
lanzaboote.url = "github:nix-community/lanzaboote"; lanzaboote.url = "github:nix-community/lanzaboote";
# Sandbox wrappers for programs
# nixpak = {
# url = "github:nixpak/nixpak";
# inputs = {
# nixpkgs.follows = "nixpkgs-small";
# flake-parts.follows = "flake-parts";
# };
# };
flake-utils = { flake-utils = {
url = "github:numtide/flake-utils"; url = "github:numtide/flake-utils";
inputs.systems.follows = "systems"; inputs.systems.follows = "systems";
@@ -64,6 +73,15 @@
url = "github:nix-community/flake-firefox-nightly"; url = "github:nix-community/flake-firefox-nightly";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Schizophrenic Firefox configuration
# schizofox = {
# url = "github:schizofox/schizofox";
# inputs = {
# nixpkgs.follows = "nixpkgs-small";
# flake-parts.follows = "flake-parts";
# nixpak.follows = "nixpak";
# };
# };
anyrun.url = "github:anyrun-org/anyrun"; anyrun.url = "github:anyrun-org/anyrun";
# agenix = { # agenix = {
# url = "github:ryantm/agenix"; # url = "github:ryantm/agenix";

View File

@@ -8,7 +8,7 @@
"$menuw" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --"; "$menuw" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
"$browser" = "firefox-nightly"; "$browser" = "firefox-nightly";
"$browserinc" = "firefox-nightly --private-window"; "$browserinc" = "firefox-nightly --private-window";
"$ranger" = "rangerscript"; "$yazi" = "alacritty -e yazi";
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
"$mod" = "SUPER"; "$mod" = "SUPER";
@@ -27,7 +27,7 @@
#bind = $mod, M, exec, hyprctl dispatch exit #bind = $mod, M, exec, hyprctl dispatch exit
#bind = $mod, E, exec, $fileManager #bind = $mod, E, exec, $fileManager
"$mod, E, exec, $fileManager" "$mod, E, exec, $fileManager"
"$mod SHIFT, E, exec, $ranger" "$mod SHIFT, E, exec, $yazi"
"$mod, F, fullscreen," "$mod, F, fullscreen,"
"$mod SHIFT, F, togglefloating," "$mod SHIFT, F, togglefloating,"
"$mod, SPACE, exec, $menu" "$mod, SPACE, exec, $menu"

View File

@@ -1,3 +1,4 @@
# Yanked from fufexan
{ {
self, self,
inputs, inputs,

View File

@@ -4,10 +4,7 @@
... ...
}: { }: {
imports = [ imports = [
./theme/filetype.nix ./theme
./theme/icons.nix
./theme/manager.nix
./theme/status.nix
]; ];
# general file info # general file info

View File

@@ -0,0 +1,13 @@
{
imports = [
./filetype.nix
./help.nix
./icons.nix
./input.nix
./manager.nix
./select.nix
./status.nix
./tasks.nix
./which.nix
];
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
{
programs.yazi.theme.help = {
on = {fg = "#fe8019";};
exec = {fg = "#83a598";};
desc = {fg = "#928374";};
hovered = {
bg = "#504945";
bold = true;
};
footer = {
fg = "#3c3836";
bg = "#a89984";
};
};
}

View File

@@ -497,7 +497,7 @@
} }
{ {
name = "*/"; name = "*/";
text = "󰉋"; text = "";
} }
]; ];
} }

View File

@@ -0,0 +1,8 @@
{
programs.yazi.theme.input = {
border = {fg = "#bdae93";};
title = {};
value = {};
selected = {reversed = true;};
};
}

View File

@@ -1,57 +1,53 @@
{ {
programs.yazi.theme.manager = { programs.yazi.theme.manager = {
cwd = {fg = "cyan";}; cwd = {fg = "#83a598";};
# Hovered # Hovered
hovered = { hovered = {
fg = "black"; fg = "#282828";
bg = "lightblue"; bg = "#83a598";
}; };
preview_hovered = { preview_hovered = {underline = true;};
fg = "black";
bg = "lightblue";
};
# Find # Find
find_keyword = { find_keyword = {
fg = "yellow"; fg = "#b8bb26";
italic = true; italic = true;
}; };
find_position = { find_position = {
fg = "magenta"; fg = "#fe8019";
bg = "reset"; bg = "reset";
italic = true; italic = true;
}; };
# Marker # Marker
marker_selected = { marker_selected = {
fg = "lightgreen"; fg = "#b8bb26";
bg = "lightgreen"; bg = "#b8bb26";
}; };
marker_copied = { marker_copied = {
fg = "lightyellow"; fg = "#b8bb26";
bg = "lightyellow"; bg = "#b8bb26";
}; };
marker_cut = { marker_cut = {
fg = "lightred"; fg = "#fb4934";
bg = "lightred"; bg = "#fb4934";
}; };
# Tab # Tab
tab_active = { tab_active = {
fg = "black"; fg = "#282828";
bg = "lightblue"; bg = "#504945";
}; };
tab_inactive = { tab_inactive = {
fg = "white"; fg = "#a89984";
bg = "darkgray"; bg = "#3c3836";
}; };
tab_width = 1; tab_width = 1;
# Border; # Border;
border_symbol = ""; border_symbol = "";
border_style = {fg = "gray";}; border_style = {fg = "#665c54";};
# Offset; # Offset;
folder_offset = [1 0 1 0]; folder_offset = [1 0 1 0];

View File

@@ -0,0 +1,7 @@
{
programs.yazi.theme.select = {
border = {fg = "#504945";};
active = {fg = "#fe8019";};
inactive = {};
};
}

View File

@@ -1,45 +1,48 @@
{ {
programs.yazi.theme.status = { programs.yazi.theme.status = {
separator_open = ""; separator_open = "";
separator_close = ""; separator_close = "";
separator_style = { separator_style = {
fg = "darkgray"; fg = "#3c3836";
bg = "darkgray"; bg = "#3c3836";
}; };
# Mode; # Mode;
mode_normal = { mode_normal = {
fg = "black"; fg = "#282828";
bg = "lightblue"; bg = "#A89984";
bold = true; bold = true;
}; };
mode_select = { mode_select = {
fg = "black"; fg = "#282828";
bg = "lightgreen"; bg = "#b8bb26";
bold = true; bold = true;
}; };
mode_unset = { mode_unset = {
fg = "black"; fg = "#282828";
bg = "lightmagenta"; bg = "#d3869b";
bold = true; bold = true;
}; };
# Progress; # Progress;
progress_label = {bold = true;}; progress_label = {
fg = "#ebdbb2";
bold = true;
};
progress_normal = { progress_normal = {
fg = "blue"; fg = "#504945";
bg = "black"; bg = "#3c3836";
}; };
progress_error = { progress_error = {
fg = "red"; fg = "#fb4934";
bg = "black"; bg = "#3c3836";
}; };
# Permissions; # Permissions;
permissions_t = {fg = "blue";}; permissions_t = {fg = "#504945";};
permissions_r = {fg = "lightyellow";}; permissions_r = {fg = "#b8bb26";};
permissions_w = {fg = "lightred";}; permissions_w = {fg = "#fb4934";};
permissions_x = {fg = "lightgreen";}; permissions_x = {fg = "#b8bb26";};
permissions_s = {fg = "darkgray";}; permissions_s = {fg = "#665c54";};
}; };
} }

View File

@@ -0,0 +1,7 @@
{
programs.yazi.theme.tasks = {
border = {fg = "#504945";};
title = {};
hovered = {underline = true;};
};
}

View File

@@ -0,0 +1,10 @@
{
programs.yazi.theme.which = {
mask = {bg = "#3c3836";};
cand = {fg = "#83a598";};
rest = {fg = "#928374";};
desc = {fg = "#fe8019";};
separator = " ";
separator_style = {fg = "#504945";};
};
}

View File

@@ -1,3 +1,4 @@
# Yanked from fufexan!
{ {
self, self,
inputs, inputs,

View File

@@ -1,3 +1,4 @@
# yes, this is also yanked from, you guessed it, fufexan.
let let
shared = [ shared = [
./bin ./bin