Compare commits

..

8 Commits

Author SHA1 Message Date
47a2fb255d cleanup 2024-12-03 08:37:07 +01:00
5407310cb4 tmux config fix 2024-12-03 08:35:45 +01:00
96e4ed146d kitty fix 2024-12-02 21:18:13 +01:00
fba87a9480 tmux added 2024-12-02 21:18:01 +01:00
c391e7b09a kitty module created 2024-12-02 15:57:06 +01:00
02ab18a41e System update 2024-12-02 15:49:54 +01:00
adb1e41319 Cleanup and restructuring 2024-12-02 15:49:46 +01:00
4ddd425f92 Style change to stable and jetbrains mono font fix 2024-12-02 15:48:32 +01:00
14 changed files with 175 additions and 73 deletions

View File

@ -20,11 +20,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1731774881, "lastModified": 1731959031,
"narHash": "sha256-1Dxryiw8u2ejntxrrv3sMtIE8WHKxmlN4KeH+uMGbmc=", "narHash": "sha256-TGcvIjftziC1CjuiHCzrYDwmOoSFYIhdiKmLetzB5L0=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "aquamarine", "repo": "aquamarine",
"rev": "b31a6a4da8199ae3489057db7d36069a70749a56", "rev": "4468981c1c50999f315baa1508f0e53c4ee70c52",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -108,11 +108,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1732593794, "lastModified": 1733135686,
"narHash": "sha256-VhS+81/eTDiin5ULZLWvqI+9ggI+qXNUSvi3dIQfBX4=", "narHash": "sha256-++1Btq9w+ZPQYP45X3G1iXEXwllo3b2UdeKVwQdUAoQ=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "9b7d4fb4739c0bf808d31e2b66b337f1234e4447", "rev": "074cadca26132cbd19f44ae5a45072f28f050ed9",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -252,11 +252,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1732482255, "lastModified": 1733133928,
"narHash": "sha256-GUffLwzawz5WRVfWaWCg78n/HrBJrOG7QadFY6rtV8A=", "narHash": "sha256-gU40r9AfpIr4eq+0noM8yH1Hxf+EA3dqfIpFtQl8Y1E=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a9953635d7f34e7358d5189751110f87e3ac17da", "rev": "873e39d5f4437d2f3ab06881fea8e63e45e1d011",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -329,11 +329,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1732629163, "lastModified": 1733073275,
"narHash": "sha256-IUNhY9+sf7zysRntzP2ZxbIipL3IuI6MgOb3gB33X6o=", "narHash": "sha256-8F5SUIglJyqSKv+iDglxkfFIeHSYPw5iexeFjzZDzVc=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "1fb720b62aeb474873ba43426ddc53afde1e6cdd", "rev": "6d7544458d0fafcae410c1978a0cabce2fb4a346",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -408,11 +408,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1731702627, "lastModified": 1732288281,
"narHash": "sha256-+JeO9gevnXannQxMfR5xzZtF4sYmSlWkX/BPmPx0mWk=", "narHash": "sha256-XTU9B53IjGeJiJ7LstOhuxcRjCOFkQFl01H78sT9Lg4=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprutils", "repo": "hyprutils",
"rev": "e911361a687753bbbdfe3b6a9eab755ecaf1d9e1", "rev": "b26f33cc1c8a7fd5076e19e2cce3f062dca6351c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -453,11 +453,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728031945, "lastModified": 1733130915,
"narHash": "sha256-NRkLjdMtVfC6dD1gEbYZWFEtbmC2xfD6ft1IP7l76Vw=", "narHash": "sha256-w4JpoG29Co6cbNfX8Z+V58i6OV2gGmgrZ012P8Zc4pw=",
"owner": "Mic92", "owner": "Mic92",
"repo": "nix-ld", "repo": "nix-ld",
"rev": "4524c512e8729ccb5a1b9239d01e1474cbf074a2", "rev": "a340f96f2be41a3b3e87cb676747a9e6908c19a7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -468,11 +468,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1731676054, "lastModified": 1732758367,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", "narHash": "sha256-RzaI1RO0UXqLjydtz3GAXSTzHkpb/lLD1JD8a0W4Wpo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", "rev": "fa42b5a5f401aab8a32bd33c9a4de0738180dc59",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -500,11 +500,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1731797254, "lastModified": 1733016324,
"narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=", "narHash": "sha256-8qwPSE2g1othR1u4uP86NXxm6i7E9nHPyJX3m3lx7Q4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59", "rev": "7e1ca67996afd8233d9033edd26e442836cc2ad6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -516,11 +516,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1732014248, "lastModified": 1733015953,
"narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", "narHash": "sha256-t4BBVpwG9B4hLgc6GUBuj3cjU7lP/PJfpTHuSqE+crk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", "rev": "ac35b104800bff9028425fec3b6e8a41de2bbfff",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -557,11 +557,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1731363552, "lastModified": 1732021966,
"narHash": "sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf+InnSMT4jlMU=", "narHash": "sha256-mnTbjpdqF0luOkou8ZFi2asa1N3AA2CchR/RqCNmsGE=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "cd1af27aa85026ac759d5d3fccf650abe7e1bbf0", "rev": "3308484d1a443fc5bc92012435d79e80458fe43c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -598,11 +598,11 @@
"tinted-tmux": "tinted-tmux" "tinted-tmux": "tinted-tmux"
}, },
"locked": { "locked": {
"lastModified": 1732608183, "lastModified": 1732993760,
"narHash": "sha256-T5k5ill+PNIEW6KuS4CpUacMtZNJe2J2q5eBOF4xWuU=", "narHash": "sha256-t1J6wgzGjvvGNfdd0ei8HnZf9sTw+SpvCNAX0i6Qgwc=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "7689e621f87bce7b6ab1925dfd70ad1f4c80f334", "rev": "d13ffb381c83b6139b9d67feff7addf18f8408fe",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -18,10 +18,10 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
home-manager = { home-manager = {
extraSpecialArgs = {inherit inputs pkgs pkgs-stable;}; extraSpecialArgs = {inherit inputs pkgs pkgs-stable username;};
backupFileExtension = "backup"; backupFileExtension = "backup";
users = { users = {
foglar = import ./home.nix; ${username} = import ./home.nix;
}; };
}; };

View File

@ -12,9 +12,6 @@
#swww #swww
playerctl playerctl
kitty
kitty-img
hyprshade hyprshade
swappy swappy
grimblast grimblast

View File

@ -35,6 +35,7 @@
loupe loupe
simple-scan simple-scan
vesktop vesktop
gnome.gnome-font-viewer
evince evince
]); ]);
}; };

View File

@ -5,13 +5,12 @@
... ...
}: { }: {
options = { options = {
programming.vscode.enable = lib.mkEnableOption "enable vscode"; program.vscode.enable = lib.mkEnableOption "enable vscode";
}; };
config = lib.mkIf config.programming.vscode.enable { config = lib.mkIf config.program.vscode.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
vscode vscode
gopls
]; ];
home.sessionVariables = { home.sessionVariables = {

View File

@ -2,17 +2,18 @@
pkgs, pkgs,
lib, lib,
config, config,
username,
... ...
}: }:
{ {
options = { options = {
programming.git.enable = lib.mkEnableOption "enable git"; program.git.enable = lib.mkEnableOption "enable git";
}; };
config = lib.mkIf config.programming.git.enable { config = lib.mkIf config.program.git.enable {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "foglar"; userName = "${username}";
userEmail = "kohout.fi.2023@skola.ssps.cz"; userEmail = "kohout.fi.2023@skola.ssps.cz";
}; };

View File

@ -17,8 +17,8 @@
config = lib.mkIf config.programming.enable { config = lib.mkIf config.programming.enable {
programming.vscode.enable = lib.mkDefault true; program.vscode.enable = lib.mkDefault true;
programming.git.enable = lib.mkDefault true; program.git.enable = lib.mkDefault true;
home.packages = with pkgs; [ home.packages = with pkgs; [
neovim neovim

View File

@ -11,18 +11,27 @@
imports = [ imports = [
./tools/oh-my-posh.nix ./tools/oh-my-posh.nix
./tools/shell.nix
./tools/kitty.nix
./tools/tmux.nix
]; ];
config = lib.mkIf config.terminal_tools.enable { config = lib.mkIf config.terminal_tools.enable {
sh.bash = {
enable = lib.mkDefault true;
oh-my-posh.enable = lib.mkDefault true;
};
shell.bash.enable = lib.mkDefault true; program = {
shell.bash.oh-my-posh.enable = lib.mkDefault true; kitty.enable = lib.mkDefault true;
tmux.enable = lib.mkDefault true;
};
programs = { programs = {
bat.enable = true; bat.enable = true;
btop.enable = true; btop.enable = true;
fzf.enable = true; fzf.enable = true;
tmux.enable = true;
}; };
stylix.targets = { stylix.targets = {
@ -39,20 +48,6 @@
enableBashIntegration = true; enableBashIntegration = true;
}; };
programs.kitty = {
enable = true;
font.name = lib.mkDefault "JetBrainsMono Nerd Font";
#themeFile = "tokyo_night_night";
#themeFile = "Catppuccin-Mocha";
settings = {
font_size = 11.5;
confirm_os_window_close = 0;
hide_window_decorations = 0;
enable_audio_bell = false;
window_padding_width = 25;
};
};
home.packages = with pkgs; [ home.packages = with pkgs; [
pfetch pfetch
zoxide zoxide

View File

@ -0,0 +1,32 @@
{
lib,
config,
pkgs,
...
}: {
options = {
program.kitty.enable = lib.mkEnableOption "Enable kitty terminal emulator";
};
config = lib.mkIf config.program.kitty.enable {
programs.kitty = {
enable = true;
font.name = lib.mkDefault "JetBrainsMono Nerd Font";
#themeFile = "tokyo_night_night";
#themeFile = "Catppuccin-Mocha";
settings = {
font_size = 11.5;
confirm_os_window_close = 0;
hide_window_decorations = 0;
enable_audio_bell = false;
window_padding_width = 25;
};
};
home.packages = with pkgs; [
kitty
kitty-img
kitty-themes
];
};
}

View File

@ -5,10 +5,10 @@
... ...
}: { }: {
options = { options = {
shell.oh-my-posh.enable = lib.mkEnableOption "enable oh-my-posh"; sh.bash.oh-my-posh.enable = lib.mkEnableOption "enable oh-my-posh";
}; };
config = lib.mkIf config.shell.oh-my-posh.enable { config = lib.mkIf config.sh.bash.oh-my-posh.enable {
programs.oh-my-posh = { programs.oh-my-posh = {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;

View File

@ -1,10 +1,15 @@
{lib, ...}: { {
lib,
config,
...
}: {
options = { options = {
shell.enable = sh.bash.enable =
lib.mkEnableOption "enables shell tools"; lib.mkEnableOption "enables shell tools";
}; };
config = lib.mkIf lib.config.shell.enable { config = lib.mkIf config.sh.bash.enable {
programs.bash = { programs.bash = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;

View File

@ -0,0 +1,72 @@
{
lib,
config,
pkgs,
...
}: {
options = {
program.tmux.enable = lib.mkEnableOption "tmux";
};
config = lib.mkIf config.program.tmux.enable {
programs.tmux = {
enable = true;
clock24 = true;
terminal = "screen-256color";
shortcut = "Space";
plugins = [
{
plugin = pkgs.tmuxPlugins.dracula;
extraConfig = ''
#set -g @dracula-show-powerline true
#set -g @dracula-show-flags true
set -g @dracula-plugins "cpu-usage ram-usage battery time"
set -g @dracula-show-left-icon session
set -g @dracula-battery-colors "red dark_gray"
set -g @dracula-show-timezone false
set -g @dracula-day-month true
set -g @dracula-military-time true
'';
}
#pkgs.tmuxPlugins.tmux-fzf
pkgs.tmuxPlugins.sensible
pkgs.tmuxPlugins.yank
pkgs.tmuxPlugins.jump
];
extraConfig = ''
set-option -sa terminal-overrides ",xterm*:Tc"
# Set pane to top
set -g status-position top
# Mouse enable
set -g mouse on
# Start count on 1 instead of 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows only
bind -n M-H previous-window
bind -n M-L next-window
# set vi mode
set-window-option -g mode-keys vi
setw -g mode-keys vi
#keybindings for copying
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
'';
};
};
}

View File

@ -12,7 +12,7 @@
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-emoji
(nerdfonts.override {fonts = ["JetBrainsMono"];}) nerd-fonts.jetbrains-mono
monaspace monaspace
]; ];
}; };

View File

@ -1,7 +1,7 @@
{ {
lib, lib,
config, config,
pkgs, pkgs-stable,
... ...
}: { }: {
options = { options = {
@ -12,7 +12,7 @@
stylix = { stylix = {
enable = true; enable = true;
image = ../../../config/backgrounds/aurora_borealis.png; image = ../../../config/backgrounds/aurora_borealis.png;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; base16Scheme = "${pkgs-stable.base16-schemes}/share/themes/catppuccin-mocha.yaml";
#base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml"; #base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml";
#base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml"; #base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
polarity = "dark"; polarity = "dark";
@ -20,7 +20,7 @@
# Set the cursor theme. # Set the cursor theme.
cursor = { cursor = {
package = pkgs.bibata-cursors; package = pkgs-stable.bibata-cursors;
name = "Bibata-Modern-Ice"; name = "Bibata-Modern-Ice";
size = 24; size = 24;
}; };
@ -35,7 +35,7 @@
monospace = { monospace = {
name = "JetBrainsMono Nerd Font"; name = "JetBrainsMono Nerd Font";
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];}; package = (pkgs-stable.nerdfonts.override { fonts = [ "JetBrainsMono" ]; });
}; };
}; };
}; };