update + changes idk

This commit is contained in:
nomadics9 2024-12-13 21:08:00 +03:00
parent 3a5a841a95
commit 88eff63ed8
14 changed files with 110 additions and 77 deletions

View file

@ -4,17 +4,16 @@
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"haskell-flake": "haskell-flake", "haskell-flake": "haskell-flake",
"hercules-ci-effects": "hercules-ci-effects",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1730775052, "lastModified": 1733918465,
"narHash": "sha256-YXbgfHYJaAXCxrAQzjd03GkSMGd3iGeTmhkMwpFhTPk=", "narHash": "sha256-hSuGa8Hh67EHr2x812Ay6WFyFT2BGKn+zk+FJWeKXPg=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "arion", "repo": "arion",
"rev": "38ea1d87421f1695743d5eca90b0c37ef3123fbb", "rev": "f01c95c10f9d4f04bb08d97b3233b530b180f12e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -28,11 +27,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1732988076, "lastModified": 1734011192,
"narHash": "sha256-2uMaVAZn7fiyTUGhKgleuLYe5+EAAYB/diKxrM7g3as=", "narHash": "sha256-NghuiWXx6Q3gwLiudiNwDpYQ1CPEUK7J+f9dWREN8KA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "2814a5224a47ca19e858e027f7e8bff74a8ea9f1", "rev": "0f31ad735e784315a22d9899d3ba24340ce64220",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -65,11 +64,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1730504689, "lastModified": 1733312601,
"narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=", "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "506278e768c2a08bec68eb62932193e341f55c90", "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -78,27 +77,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"arion",
"hercules-ci-effects",
"nixpkgs"
]
},
"locked": {
"lastModified": 1712014858,
"narHash": "sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm+GpZNw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9126214d0a59633752a136528f5f3b9aa8565b7d",
"type": "github"
},
"original": {
"id": "flake-parts",
"type": "indirect"
}
},
"haskell-flake": { "haskell-flake": {
"locked": { "locked": {
"lastModified": 1675296942, "lastModified": 1675296942,
@ -115,28 +93,6 @@
"type": "github" "type": "github"
} }
}, },
"hercules-ci-effects": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"arion",
"nixpkgs"
]
},
"locked": {
"lastModified": 1730229744,
"narHash": "sha256-2W//PmgocN9lplDJ7WoiP9EcrfUxqvtxplCAqlwvquY=",
"owner": "hercules-ci",
"repo": "hercules-ci-effects",
"rev": "d70658494391994c7b32e8fe5610dae76737e4df",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "hercules-ci-effects",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -144,11 +100,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733133928, "lastModified": 1734031102,
"narHash": "sha256-gU40r9AfpIr4eq+0noM8yH1Hxf+EA3dqfIpFtQl8Y1E=", "narHash": "sha256-6RDywJJ1AuG2NflpXaWgNDYOOLGCqgTezUuc0RiEYzA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "873e39d5f4437d2f3ab06881fea8e63e45e1d011", "rev": "15151bb5e7d6e352247ecaeeeefc34d0f306b287",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -159,11 +115,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1732238832, "lastModified": 1733749988,
"narHash": "sha256-sQxuJm8rHY20xq6Ah+GwIUkF95tWjGRd1X8xF+Pkk38=", "narHash": "sha256-+5qdtgXceqhK5ZR1YbP1fAUsweBIrhL38726oIEAtDs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8edf06bea5bcbee082df1b7369ff973b91618b8d", "rev": "bc27f0fde01ce4e1bfec1ab122d72b7380278e68",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -191,11 +147,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1733015953, "lastModified": 1733759999,
"narHash": "sha256-t4BBVpwG9B4hLgc6GUBuj3cjU7lP/PJfpTHuSqE+crk=", "narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ac35b104800bff9028425fec3b6e8a41de2bbfff", "rev": "a73246e2eef4c6ed172979932bc80e1404ba2d56",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -223,11 +179,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733128155, "lastModified": 1733965552,
"narHash": "sha256-m6/qwJAJYcidGMEdLqjKzRIjapK4nUfMq7rDCTmZajc=", "narHash": "sha256-GZ4YtqkfyTjJFVCub5yAFWsHknG1nS/zfk7MuHht4Fs=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "c6134b6fff6bda95a1ac872a2a9d5f32e3c37856", "rev": "2d73fc6ac4eba4b9a83d3cb8275096fbb7ab4004",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -3,12 +3,16 @@
./zsh.nix ./zsh.nix
./fzf.nix ./fzf.nix
./neofetch.nix ./neofetch.nix
./nushell.nix
./fish.nix
]; ];
# Starship # Starship
programs.starship = { programs.starship = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
enableNushellIntegration = true;
enableFishIntegration = true;
}; };
programs.bat = { enable = true; }; programs.bat = { enable = true; };
@ -21,6 +25,7 @@
tldr tldr
zip zip
exiftool exiftool
chafa
nvtopPackages.full nvtopPackages.full
]; ];
} }

View file

@ -0,0 +1,28 @@
{ config
, lib
, ...
}:
with lib; let
cfg = config.features.cli.fish;
in
{
options.features.cli.fish.enable = mkEnableOption "enable extended fish configuration";
config = mkIf cfg.enable {
programs.fish = {
enable = true;
shellAliases = {
rebuild = "sudo nixos-rebuild switch";
dotfilesu = "nix flake lock --update-input dotfiles";
cleanold = "sudo nix-collect-garbage --delete-old";
cleanboot = "sudo /run/current-system/bin/switch-to-configuration boot";
};
functions = {
fish_greeting = ''
chafa --align=Center ~/sync/0nmd/logo.webp --scale=0.8 -f symbols --symbols w
'';
};
};
};
}

View file

@ -29,7 +29,7 @@ in
}; };
defaultOptions = [ defaultOptions = [
"--preview='bat --color=always -n {}'" "--preview='bat --color=always -n {}'"
"--bind 'ctrl-/:toggle-preview'" "--bind 'ctrl-p:toggle-preview'"
]; ];
defaultCommand = "fd --type f --exclude .git --follow --hidden"; defaultCommand = "fd --type f --exclude .git --follow --hidden";
changeDirWidgetCommand = "fd --type d --exclude .git --follow --hidden"; changeDirWidgetCommand = "fd --type d --exclude .git --follow --hidden";

View file

@ -95,8 +95,8 @@ with lib; let
memory_display="on" memory_display="on"
battery_display="on" battery_display="on"
disk_display="on" disk_display="on"
image_backend="kitty" image_backend="chafa"
image_source="${config.home.homeDirectory}/nixcfg/assets/logo.png" image_source="${config.home.homeDirectory}/dev/nixnix/nixcfg/assets/logo.png"
ascii_distro="off" ascii_distro="off"
ascii="off" ascii="off"
ascii_colors=(distro) ascii_colors=(distro)

View file

@ -0,0 +1,24 @@
{ config
, lib
, ...
}:
with lib; let
cfg = config.features.cli.nushell;
in
{
options.features.cli.nushell.enable = mkEnableOption "enable extended nushell configuration";
config = mkIf cfg.enable {
programs.nushell = {
enable = true;
shellAliases = {
rebuild = "sudo nixos-rebuild switch";
dotfilesu = "nix flake lock --update-input dotfiles";
cleanold = "sudo nix-collect-garbage --delete-old";
cleanboot = "sudo /run/current-system/bin/switch-to-configuration boot";
};
};
};
}

View file

@ -14,7 +14,8 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
fira-code fira-code
fira-code-symbols fira-code-symbols
fira-code-nerdfont nerd-fonts.fira-code
nerd-fonts.jetbrains-mono
font-manager font-manager
font-awesome_5 font-awesome_5
font-awesome font-awesome

View file

@ -10,7 +10,9 @@
features = { features = {
cli = { cli = {
zsh.enable = true; zsh.enable = false;
nushell.enable = false;
fish.enable = true;
fzf.enable = true; fzf.enable = true;
neofetch.enable = true; neofetch.enable = true;
}; };

View file

@ -13,6 +13,7 @@
# Essentials # Essentials
kitty kitty
alacritty alacritty
tmux
firefox firefox
google-chrome google-chrome
age age

View file

@ -8,7 +8,7 @@
features = { features = {
cli = { cli = {
zsh.enable = true; fish.enable = true;
fzf.enable = true; fzf.enable = true;
neofetch.enable = true; neofetch.enable = true;
}; };

View file

@ -8,7 +8,7 @@
${user} = { ${user} = {
initialPassword = "4321"; initialPassword = "4321";
isNormalUser = true; isNormalUser = true;
shell = pkgs.zsh; shell = pkgs.fish;
description = "${user}"; description = "${user}";
extraGroups = [ extraGroups = [
"wheel" "wheel"
@ -62,7 +62,8 @@
package = pkgs.wireshark; package = pkgs.wireshark;
}; };
programs.zsh.enable = true; # programs.zsh.enable = true;
programs.fish.enable = true;
home-manager.users.${user} = home-manager.users.${user} =
import ../../../home/${user}/${config.networking.hostName}.nix; import ../../../home/${user}/${config.networking.hostName}.nix;
} }

View file

@ -69,6 +69,10 @@
#Hosts #Hosts
networking.extraHosts = '' networking.extraHosts = ''
10.10.11.45 vintage.htb DC01.vintage.htb
10.10.11.25 greenhorn.htb
10.10.11.31 infiltrator.htb
10.10.11.32 sightless.htb
''; '';
# Bluethooth # Bluethooth

View file

@ -45,7 +45,7 @@ in
#nvidia.nvidiaPersistenced = true; #nvidia.nvidiaPersistenced = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta; nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
#offload , Sync or reverseSync #offload , Sync or reverseSync
nvidia.prime = { nvidia.prime = {
@ -74,7 +74,8 @@ in
virtualisation.docker = { virtualisation.docker = {
enable = true; enable = true;
enableOnBoot = true; enableOnBoot = true;
#enableNvidia = true; enableNvidia = true;
extraOptions = ''--data-root=/home/nomad/docker-data'';
}; };
hardware.nvidia-container-toolkit.enable = true; hardware.nvidia-container-toolkit.enable = true;

View file

@ -90,12 +90,22 @@
} }
nmd.mov { nmd.mov www.nmd.mov {
reverse_proxy localhost:3001 reverse_proxy localhost:3001
} }
www.alaskar.dev alaskar.dev {
root * /var/www/portofolio
file_server
try_files {path} {path}.html
handle_errors {
rewrite * /404.html
file_server
}
}
www.nmd.mov {
log.nmd.mov {
root * /var/www/goaccess root * /var/www/goaccess
file_server file_server