Compare commits

...

2 Commits

Author SHA1 Message Date
ab6b6e2889 script update and todo 2025-01-03 20:29:11 +01:00
cb4d3805e8 logind moved into other file 2025-01-03 20:28:39 +01:00
5 changed files with 15 additions and 9 deletions

View File

@ -24,17 +24,16 @@
- [x] fix rofi cliboard manager by moving it into separate file managed by nix - [x] fix rofi cliboard manager by moving it into separate file managed by nix
- [x] nix-on-droid - [x] nix-on-droid
- [x] stylix make in one place and check for each program if it is enabled (tmux) - [x] stylix make in one place and check for each program if it is enabled (tmux)
- [ ] neovim - [ ] neovim
- [ ] librewolf and firefox fix, extensions and bookmarks in librewolf - [ ] librewolf and firefox fix, extensions and bookmarks in librewolf
- [ ] modularize hyprland config into multiple files - [ ] modularize hyprland config into multiple files
- [ ] consider moving nh config helper into module
- [ ] make static background folder and figure out how to simply manage backgrounds across my devices - [ ] make static background folder and figure out how to simply manage backgrounds across my devices
- [ ] fix plasma manager and extend gnome configuration - [ ] fix plasma manager and extend gnome configuration
- [ ] ssh public key deployment - [ ] ssh public key deployment
- [ ] consider moving userSettings from flake.nix to each profile - [ ] consider moving userSettings from flake.nix to each profile
- [ ] add grub bootloader to configuration (and theme) - [ ] add grub bootloader to configuration (and theme)
- [ ] distinguish between profiles and decide which version of nixpkgs it should use (my notebook unstable, server stable ...) - [ ] distinguish between profiles and decide which version of nixpkgs it should use (my notebook unstable, server stable ...)
- [ ] check nvtop if nvidia is enabled
- [ ] add notification management for bluetooth etc... - [ ] add notification management for bluetooth etc...
- [ ] add syncthing configuration - [ ] add syncthing configuration
- [ ] qutebrowser configuration - [ ] qutebrowser configuration

View File

@ -10,7 +10,7 @@ if [ -d $SCRIPT_DIR ]; then
gum confirm "The directory $SCRIPT_DIR already exists. Do you want to delete it?" && yes | rm -rv $SCRIPT_DIR gum confirm "The directory $SCRIPT_DIR already exists. Do you want to delete it?" && yes | rm -rv $SCRIPT_DIR
fi fi
nixos_profile=$(gum choose kogami ginoza tsunemori) nixos_profile=$(gum choose kogami ginoza)
download_wallpapers=$(gum confirm "Do you want to download wallpapers (it may take longer)?" && echo true || echo false) download_wallpapers=$(gum confirm "Do you want to download wallpapers (it may take longer)?" && echo true || echo false)
if [ -d $SCRIPT_DIR ]; then if [ -d $SCRIPT_DIR ]; then
@ -43,4 +43,10 @@ $EDITOR $SCRIPT_DIR/flake.nix
gum log --structured --level info "Building configuration for $profile..." profile $profile gum log --structured --level info "Building configuration for $profile..." profile $profile
sudo nixos-rebuild build --flake $SCRIPT_DIR#"${profile}" sudo nixos-rebuild build --flake $SCRIPT_DIR#"${profile}"
# Wallpapers
if [ $download_wallpapers = true ]; then
gum log --structured --level info "Downloading wallpapers..." profile $profile
nix-shell -p git --command "git clone https://git.foglar.tech/foglar/wallpapers.git ~/Pictures/wallpapers"
fi
gum confirm "Do you want to reboot now?" && systemctl reboot || gum log "Please reboot later, to switch to the new configuration" gum confirm "Do you want to reboot now?" && systemctl reboot || gum log "Please reboot later, to switch to the new configuration"

View File

@ -14,7 +14,6 @@
]; ];
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
programs.nix-ld.dev.enable = true;
# Home manager # Home manager
home-manager = { home-manager = {
@ -76,11 +75,7 @@
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
programs.wireshark.enable = true; programs.wireshark.enable = true;
programs.auto-cpufreq.enable = true; programs.auto-cpufreq.enable = true;
programs.nix-ld.dev.enable = true;
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
environment.systemPackages = [inputs.ghostty.packages.x86_64-linux.default]; environment.systemPackages = [inputs.ghostty.packages.x86_64-linux.default];

View File

@ -0,0 +1,5 @@
{...}: {
services.logind.extraConfig = ''
HandlePowerKey=ignore
'';
}

View File

@ -15,6 +15,7 @@
./settings/loginManager.nix ./settings/loginManager.nix
./settings/style.nix ./settings/style.nix
./settings/default-applications.nix ./settings/default-applications.nix
./settings/logind.nix
#./settings/bootloader.nix #./settings/bootloader.nix
./settings/user.nix ./settings/user.nix