Kardorf: make use of new modules

This commit is contained in:
Julian Mutter 2024-07-21 09:11:44 +02:00
parent 80bdd2314a
commit 5e3a0f0908
4 changed files with 57 additions and 20 deletions

View File

@ -23,23 +23,22 @@
home.username = "julian"; home.username = "julian";
home.homeDirectory = "/home/julian"; home.homeDirectory = "/home/julian";
# DO NOT CHANGE!!!
home.stateVersion = "23.11";
modules = { modules = {
non-nixos.is-nixos = true;
shell = { shell = {
fish.enable = true; fish.enable = true;
direnv.enable = true; direnv.enable = true;
}; };
topgrade.enable = true; topgrade.enable = true;
neovim.enable = true; neovim.enable = true;
alacritty.enable = true; # alacritty.enable = true;
kitty.enable = true;
yazi.enable = true;
emacs.enable = true; emacs.enable = true;
i3 = { i3.enable = true;
enable = true;
};
rofi.enable = true;
nix-helper.enable = true; nix-helper.enable = true;
desktop.enable = true;
}; };
home.packages = home.packages =
@ -52,9 +51,24 @@
gtk = { gtk = {
enable = true; enable = true;
theme.name = "Adwaita-dark"; # theme.name = "Adwaita-dark";
};
services.syncthing.tray.enable = true;
services.syncthing.tray.command = "syncthingtray --wait"; # Wait for tray to become available
programs.chromium = {
enable = true;
extensions = [
# Tampermonkey
{ id = "dhdgffkkebhmkfjojejmpbldmpobfkfo"; }
];
}; };
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
# ======================== DO NOT CHANGE THIS ========================
home.stateVersion = "23.11";
# ======================== DO NOT CHANGE THIS ========================
} }

View File

@ -6,11 +6,11 @@ with pkgs;
shellcheck shellcheck
# Rust setup # Rust setup
rustc unstable.rustc
rustfmt unstable.rustfmt
cargo unstable.cargo
clippy unstable.clippy
rust-analyzer unstable.rust-analyzer
# Further tools # Further tools
lazygit lazygit
@ -125,7 +125,7 @@ with pkgs;
nomacs nomacs
rocketchat-desktop rocketchat-desktop
# zotero zotero
inkscape inkscape
pulseaudio pulseaudio
gcolor3 gcolor3
@ -154,7 +154,7 @@ with pkgs;
winetricks winetricks
# lf # lf
rustdesk # rustdesk
# realvnc-vnc-viewer # realvnc-vnc-viewer
calibre calibre
@ -165,6 +165,25 @@ with pkgs;
# colmapWithCuda # colmapWithCuda
path-of-building path-of-building
nheko
pkg-config # Often needed to build something
## My scripts ## My scripts
frajul.edit-config frajul.edit-config
frajul.xwacomcalibrate
(pkgs.writeShellScriptBin "matlab-paper" ''
matlab -desktop -sd "/home/julian/dev/phdthesis/Phase B/mainSimulation" -softwareopengl
'')
(pkgs.writeShellScriptBin "matlab-robotik" ''
matlab -desktop -sd "/home/julian/nas-sync/Studium/Vorlesungen-Master/ss24/Robotik2" -softwareopengl
'')
(pkgs.writeShellScriptBin "matlab-gram" ''
export GTK_PATH=/usr/lib/gtk-3.0
nix shell nixpkgs#gcc11 --command matlab -desktop -sd "/home/julian/dev/matlab-gram" -softwareopengl
'')
(pkgs.writeShellScriptBin "expenses-tracker" ''
java -jar /home/julian/dev/expensestracker/app/build/libs/app.jar
'')
] ]

View File

@ -29,7 +29,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
floating_modifier $mod floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec alacritty bindsym $mod+Return exec kitty
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -214,10 +214,9 @@ bindsym $mod+Print exec --no-startup-id "xfce4-screenshooter"
bindsym $mod+c exec qalculate-gtk bindsym $mod+c exec qalculate-gtk
bindsym $mod+Shift+p exec xwacomcalibrate bindsym $mod+Shift+p exec xwacomcalibrate
bindsym $mod+e exec thunar bindsym $mod+e exec pcmanfm
bindsym $mod+Shift+c exec $scripts/jupyter-calculator bindsym $mod+Shift+c exec $scripts/jupyter-calculator
bindsym $mod+b exec firefox bindsym $mod+b exec firefox
bindsym $mod+u exec pamac-manager
bindsym $mod+p exec $scripts/display-toggle-mirror bindsym $mod+p exec $scripts/display-toggle-mirror
workspace_auto_back_and_forth yes workspace_auto_back_and_forth yes

View File

@ -42,6 +42,8 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
modules.system.boot-efi.enable = true;
boot.supportedFilesystems = [ boot.supportedFilesystems = [
"btrfs" "btrfs"
"ntfs" "ntfs"
@ -69,6 +71,9 @@
modules = { modules = {
locales.enable = true; locales.enable = true;
pcmanfm.enable = true;
# wayland.enable = true;
# hyprland.enable = true;
}; };
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
@ -168,7 +173,7 @@
# home-manager.useUserPackages = true; # home-manager.useUserPackages = true;
programs.fish.enable = true; programs.fish.enable = true;
programs.zsh.enable = true; # programs.zsh.enable = true;
programs.nix-ld.enable = true; programs.nix-ld.enable = true;