From 0b208040cb9ba080793e4e128b72a9a24109c36f Mon Sep 17 00:00:00 2001 From: Superredstone Date: Thu, 8 Jan 2026 11:03:15 +0100 Subject: [PATCH] Minor server changes --- home/default.nix | 9 ++++++++- home/gnome.nix | 1 - machines/bomba/configuration.nix | 29 ++++++++++++----------------- machines/bomba/default.nix | 1 + machines/bomba/virtualisation.nix | 4 ++++ 5 files changed, 25 insertions(+), 19 deletions(-) create mode 100644 machines/bomba/virtualisation.nix diff --git a/home/default.nix b/home/default.nix index 5e242bf..1cafcc3 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,4 @@ -{ currentSystemUser, currentSystemDe, ... }: +{ currentSystemUser, currentSystemDe, pkgs, ... }: { imports = [ ./fish.nix @@ -19,6 +19,13 @@ BROWSER = "floorp"; TERMINAL = "kitty"; }; + home.packages = [ + pkgs.dconf + ]; + + dconf.enable = true; + + services.udiskie.enable = true; programs.home-manager.enable = true; diff --git a/home/gnome.nix b/home/gnome.nix index 5a9d7f4..1b55810 100644 --- a/home/gnome.nix +++ b/home/gnome.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { dconf = { - enable = true; settings."org/gnome/shell" = { disable-user-extensions = false; enabled-extensions = with pkgs.gnomeExtensions; [ diff --git a/machines/bomba/configuration.nix b/machines/bomba/configuration.nix index b09845e..6b77e81 100644 --- a/machines/bomba/configuration.nix +++ b/machines/bomba/configuration.nix @@ -5,26 +5,21 @@ { config, pkgs, ... }: { - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; - # Enable networking - networking.networkmanager.enable = true; + networking.networkmanager.enable = true; - # Set your time zone. - time.timeZone = "Europe/Rome"; + time.timeZone = "Europe/Rome"; - nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnfree = true; - services.openssh.enable = true; + services = { + openssh.enable = true; + udisks2.enable = true; + }; - # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ 22 ]; - networking.firewall.allowedUDPPorts = [ ]; - # Or disable the firewall altogether. - networking.firewall.enable = true; - # xdg.portal.extraPortals = with pkgs; [ - # xdg-desktop-portal-gtk - # ]; + networking.firewall.allowedTCPPorts = [ 22 ]; + networking.firewall.allowedUDPPorts = [ ]; + networking.firewall.enable = true; } diff --git a/machines/bomba/default.nix b/machines/bomba/default.nix index cd2f668..6f9011c 100644 --- a/machines/bomba/default.nix +++ b/machines/bomba/default.nix @@ -3,6 +3,7 @@ imports = [ ./configuration.nix ./hardware.nix + ./virtualisation.nix ]; networking.hostName = "bomba"; diff --git a/machines/bomba/virtualisation.nix b/machines/bomba/virtualisation.nix new file mode 100644 index 0000000..a7fbbf9 --- /dev/null +++ b/machines/bomba/virtualisation.nix @@ -0,0 +1,4 @@ +{ currentSystemUser, ... }: +{ + virtualisation.docker.enable = true; +}