Compare commits
	
		
			4 Commits
		
	
	
		
			465ef0b9b1
			...
			4e86eedc2d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 4e86eedc2d | ||
|  | e471b57883 | ||
|  | 67ca7276aa | ||
|  | cdc335e842 | 
| @ -38,11 +38,12 @@ in | ||||
| 
 | ||||
| 
 | ||||
|     home.packages = with pkgs; [ | ||||
|       unstable.nix-output-monitor | ||||
|       nix-output-monitor | ||||
|       nix-top | ||||
|       nix-index | ||||
|       nix-tree | ||||
|       unstable.comma | ||||
|       # unstable.comma | ||||
|       nixd | ||||
| 
 | ||||
|       openvpn | ||||
| 
 | ||||
| @ -95,7 +96,6 @@ in | ||||
|       plasma5Packages.kdegraphics-thumbnailers | ||||
|       plasma5Packages.kio | ||||
|       plasma5Packages.kio-extras | ||||
|       krename | ||||
|       konsole # https://bugs.kde.org/show_bug.cgi?id=407990 reeee | ||||
| 
 | ||||
|       gedit | ||||
| @ -112,7 +112,7 @@ in | ||||
|       kdenlive | ||||
|       frei0r | ||||
|       audacity | ||||
|       inkscape | ||||
|       # inkscape | ||||
|       blender | ||||
| 
 | ||||
|       mkvtoolnix | ||||
| @ -199,23 +199,44 @@ in | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     programs.vscode = { | ||||
|     programs.zed-editor = { | ||||
|       enable = config.profiles.gui.enable; | ||||
|       package = pkgs.vscodium; | ||||
|       extensions = with pkgs.vscode-extensions; [ | ||||
|         bbenoist.nix | ||||
|          | ||||
|         rust-lang.rust-analyzer | ||||
|         vadimcn.vscode-lldb | ||||
|       ] ++ lib.optionals config.nixpkgs.config.allowUnfree [ | ||||
|         ms-vsliveshare.vsliveshare | ||||
|       package = pkgs.unstable.zed-editor; | ||||
|       extensions = [ | ||||
|         "nix" | ||||
|       ]; | ||||
|       userSettings = { | ||||
|         "editor.insertSpaces" = false; | ||||
|         "terminal.integrated.fontFamily" = "MesloLGS NF"; | ||||
|         telemetry.metrics = false; | ||||
|         telemetry.diagnostics = false; | ||||
|         features = { | ||||
|           copilot = false; | ||||
|         }; | ||||
|         buffer_font_family = "MesloLGS NF"; | ||||
|         base_keymap = "VSCode"; | ||||
|         language_overrides = { | ||||
|           Rust = { | ||||
|             inlay_hints.enabled = true; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     # programs.vscode = { | ||||
|     #   enable = config.profiles.gui.enable; | ||||
|     #   package = pkgs.vscodium; | ||||
|     #   extensions = with pkgs.vscode-extensions; [ | ||||
|     #     bbenoist.nix         | ||||
|     #     rust-lang.rust-analyzer | ||||
|     #     vadimcn.vscode-lldb | ||||
|     #   ] ++ lib.optionals config.nixpkgs.config.allowUnfree [ | ||||
|     #     ms-vsliveshare.vsliveshare | ||||
|     #   ]; | ||||
|     #   userSettings = { | ||||
|     #     "editor.insertSpaces" = false; | ||||
|     #     "terminal.integrated.fontFamily" = "MesloLGS NF"; | ||||
|     #   }; | ||||
|     # }; | ||||
| 
 | ||||
|     programs.git = { | ||||
|       enable = true; | ||||
|       userEmail = "daniel.olsen99@gmail.com"; | ||||
|  | ||||
| @ -12,13 +12,10 @@ in { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     home.packages = with pkgs; [ | ||||
|       fortune | ||||
|       lolcat | ||||
|       neofetch | ||||
|       pipes | ||||
|     ] ++ lib.optionals config.profiles.gui.enable [ | ||||
|       steam | ||||
| 
 | ||||
|       unstable.prismlauncher | ||||
|       prismlauncher | ||||
| #     minetest | ||||
| #     dwarf-fortress-packages.dwarf-fortress-full | ||||
| #     superTuxKart | ||||
|  | ||||
| @ -173,7 +173,7 @@ in | ||||
|       pkgs.dmenu | ||||
| 
 | ||||
|       pkgs.scrot | ||||
|       pkgs.neofetch | ||||
|       # pkgs.neofetch | ||||
|       #pkgs.dan.colors | ||||
|       pkgs.xclip | ||||
| 
 | ||||
|  | ||||
| @ -3,29 +3,23 @@ | ||||
| 
 | ||||
|   config = lib.mkIf config.profiles.xsession.enable { | ||||
| 
 | ||||
|     home.file.kitty = { | ||||
|       target = ".config/kitty/kitty.conf"; | ||||
|       text = '' | ||||
|         #term               xterm-256color | ||||
|         font_family         MesloLGS NF | ||||
|         font_size           12.0 | ||||
|         background_opacity  0.7 | ||||
|     programs.kitty = { | ||||
|       enable = true; | ||||
|       font.name = "MesloLGS NF"; | ||||
|       font.size = 12; | ||||
|       keybindings = { | ||||
|         "ctrl+shift+c" = "copy_to_clipboard"; | ||||
|         "ctrl+shift+v" = "paste_from_clipboard"; | ||||
| 
 | ||||
|         clear_all_shortcuts yes | ||||
| 
 | ||||
|         map ctrl+shift+c copy_to_clipboard | ||||
|         map ctrl+shift+v paste_from_clipboard | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|         map ctrl+plus change_font_size all +2.0 | ||||
|         map ctrl+shift+plus change_font_size all -2.0 | ||||
|       ''; | ||||
|         "ctrl+plus" = "change_font_size all +2.0"; | ||||
|         "ctrl+shift+plus" = "change_font_size all -2.0"; | ||||
|       }; | ||||
|       settings = { | ||||
|         "background_opacity" = 0.7; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
| 
 | ||||
|    home.packages = [ | ||||
|       pkgs.kitty | ||||
|       pkgs.ncurses.dev | ||||
|     ]; | ||||
|   }; | ||||
|  | ||||
| @ -14,6 +14,38 @@ | ||||
|    # "10.10.111.103" = [ "snowbell.htb" "legacy.snowbell.htb" "management.snowbell.htb" ]; | ||||
|   }; | ||||
| 
 | ||||
|   services.restic.backups."main" = { | ||||
|     repositoryFile = "/root/restic-main-repo"; | ||||
|     passwordFile = "/root/restic-main-password"; | ||||
|     pruneOpts = [ | ||||
|       "--keep-last 2" | ||||
|       "--keep-within 3d" | ||||
|       "--keep-daily 7" | ||||
|       "--keep-weekly 5" | ||||
|       "--keep-monthly 12" | ||||
|       "--keep-yearly 5" | ||||
|     ]; | ||||
|     paths = [ | ||||
|       "/home/daniel" | ||||
|       "/var/lib" | ||||
|     ]; | ||||
|     exclude = [ | ||||
|       "/home/*/.cache" | ||||
| 
 | ||||
|       "/home/*/.local/share/Trash" | ||||
| 
 | ||||
|       "/home/*/.cargo" | ||||
| 
 | ||||
|       "/home/*/.local/share/Steam/*" | ||||
|       "!/home/*/.local/share/Steam/compatdata" | ||||
| 
 | ||||
|       "/home/*/mnt" | ||||
|     ]; | ||||
|     extraBackupArgs = [ | ||||
|       "--one-file-system" | ||||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; | ||||
| 
 | ||||
|   virtualisation.podman.enable = true; | ||||
| @ -23,24 +55,24 @@ | ||||
|   programs.wireshark.enable = true; | ||||
|   programs.wireshark.package = pkgs.wireshark; | ||||
| 
 | ||||
|  #  services.mysql.enable = true; | ||||
|  #  services.mysql.package = pkgs.mariadb; | ||||
|  #  services.mysql.settings.mysqld = { | ||||
|  #    bind-address = "127.0.0.1"; | ||||
|  #    port = 3306; | ||||
|  #  }; | ||||
|  #  services.mysql.ensureUsers = [ | ||||
|  #    { | ||||
|  #      name = "daniel"; | ||||
|  #      ensurePermissions = { | ||||
|  #        "lab1.*" = "ALL PRIVILEGES"; | ||||
|  #        "lab2.*" = "ALL PRIVILEGES"; | ||||
|  #        "lab3.*" = "ALL PRIVILEGES"; | ||||
| 	# "lab4.*" = "ALL PRIVILEGES"; | ||||
|  #        "lab5.*" = "ALL PRIVILEGES"; | ||||
|  #      }; | ||||
|  #    } | ||||
|  #  ]; | ||||
|   services.mysql.enable = true; | ||||
|   services.mysql.package = pkgs.mariadb; | ||||
|   services.mysql.settings.mysqld = { | ||||
|     bind-address = "127.0.0.1"; | ||||
|     port = 3306; | ||||
|   }; | ||||
|   services.mysql.ensureUsers = [ | ||||
|     { | ||||
|       name = "daniel"; | ||||
|       ensurePermissions = { | ||||
|         "lab1.*" = "ALL PRIVILEGES"; | ||||
|         "lab2.*" = "ALL PRIVILEGES"; | ||||
|         "lab3.*" = "ALL PRIVILEGES"; | ||||
|         "lab4.*" = "ALL PRIVILEGES"; | ||||
|         "lab5.*" = "ALL PRIVILEGES"; | ||||
|       }; | ||||
|     } | ||||
|   ]; | ||||
| 
 | ||||
|   # services.create_ap.enable = false; | ||||
|   # services.create_ap.settings = { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user