140 lines
2.9 KiB
Nix
140 lines
2.9 KiB
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{
|
||
inputs,
|
||
config,
|
||
pkgs,
|
||
myhostname,
|
||
...
|
||
}:
|
||
let
|
||
theme = "latte";
|
||
in
|
||
{
|
||
imports = [
|
||
./hardware-configuration.nix
|
||
|
||
../../moduler/base.nix
|
||
|
||
../../moduler/users.nix
|
||
../../moduler/git.nix
|
||
../../moduler/network.nix
|
||
../../moduler/programs.nix
|
||
../../moduler/system.nix
|
||
../../moduler/dev.nix
|
||
../../moduler/lsp.nix
|
||
../../moduler/hyprland.nix
|
||
../../moduler/sound.nix
|
||
../../moduler/programs/kubernetes-tools.nix
|
||
../../moduler/programs/confetti
|
||
];
|
||
|
||
kubernetes-tools.enable = true;
|
||
networking.networkmanager = {
|
||
enable = true;
|
||
plugins = with pkgs; [
|
||
networkmanager-openvpn
|
||
];
|
||
};
|
||
|
||
stylix = {
|
||
enable = true;
|
||
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-${theme}.yaml";
|
||
};
|
||
|
||
programs.ssh.knownHosts = {
|
||
desktop = {
|
||
extraHostNames = [ "192.168.1.227" ];
|
||
publicKeyFile = ../../keys/rsa_pubkey;
|
||
};
|
||
"192.168.1.227" = {
|
||
publicKeyFile = ../../keys/rsa_pubkey;
|
||
};
|
||
};
|
||
hyprland = {
|
||
enable = true;
|
||
theme = theme;
|
||
};
|
||
|
||
home-manager.extraSpecialArgs = { inherit inputs pkgs; };
|
||
home-manager.users.fw = {
|
||
imports = [
|
||
./../../moduler/home.nix
|
||
./../../moduler/programs/waybar
|
||
inputs.catppuccin.homeModules.catppuccin
|
||
];
|
||
waybar = {
|
||
enable = true;
|
||
configPath = ./../../moduler/programs/waybar/waybar.jsonc;
|
||
stylePath = ./../../moduler/programs/waybar/waybar-${theme}.css;
|
||
};
|
||
gtk = {
|
||
enable = true;
|
||
iconTheme = {
|
||
name = "oomox-gruvbox-dark";
|
||
package = pkgs.gruvbox-dark-icons-gtk;
|
||
};
|
||
};
|
||
kitty = {
|
||
enable = true;
|
||
theme = theme;
|
||
};
|
||
fish = {
|
||
theme = theme;
|
||
};
|
||
k9s = {
|
||
enable = true;
|
||
theme = theme;
|
||
};
|
||
programs.zsh = {
|
||
enable = true;
|
||
enableCompletion = true;
|
||
autosuggestion.enable = true;
|
||
syntaxHighlighting.enable = true;
|
||
|
||
shellAliases = {
|
||
ll = "ls -l";
|
||
update = "sudo nixos-rebuild switch";
|
||
};
|
||
history.size = 10000;
|
||
};
|
||
oh-my-posh = {
|
||
enable = true;
|
||
theme = theme;
|
||
};
|
||
catppuccin = {
|
||
librewolf = {
|
||
enable = true;
|
||
flavor = theme;
|
||
accent = "peach";
|
||
};
|
||
};
|
||
programs.ranger.enable = true;
|
||
stylix.targets = {
|
||
lazygit.enable = false;
|
||
fish.enable = false;
|
||
kitty.enable = false;
|
||
waybar.enable = false;
|
||
tmux.enable = false;
|
||
k9s.enable = false;
|
||
};
|
||
};
|
||
|
||
services = {
|
||
fprintd = {
|
||
enable = true;
|
||
tod = {
|
||
enable = true;
|
||
driver = pkgs.libfprint-2-tod1-goodix;
|
||
};
|
||
};
|
||
};
|
||
|
||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||
|
||
networking.hostName = myhostname;
|
||
|
||
system.stateVersion = "25.05";
|
||
}
|