From bb11479130b0988e93408aa917cfc872d427d95f Mon Sep 17 00:00:00 2001 From: Leonardo Date: Sat, 28 Feb 2026 16:27:59 +0100 Subject: nuovo layout --- odino/home-manager/default.nix | 5 --- odino/home-manager/leo/home.nix | 13 ------ odino/home-manager/leo/programs/default.nix | 9 ----- odino/home-manager/leo/programs/fastfetch.nix | 57 --------------------------- odino/home-manager/leo/programs/zsh.nix | 44 --------------------- odino/nixos/boot.nix | 19 --------- odino/nixos/default.nix | 25 ------------ odino/nixos/hardware-configuration.nix | 40 ------------------- odino/nixos/hardware.nix | 23 ----------- odino/nixos/locales.nix | 20 ---------- odino/nixos/networking.nix | 31 --------------- odino/nixos/programs/default.nix | 38 ------------------ odino/nixos/services/default.nix | 12 ------ 13 files changed, 336 deletions(-) delete mode 100644 odino/home-manager/default.nix delete mode 100644 odino/home-manager/leo/home.nix delete mode 100644 odino/home-manager/leo/programs/default.nix delete mode 100644 odino/home-manager/leo/programs/fastfetch.nix delete mode 100644 odino/home-manager/leo/programs/zsh.nix delete mode 100644 odino/nixos/boot.nix delete mode 100644 odino/nixos/default.nix delete mode 100644 odino/nixos/hardware-configuration.nix delete mode 100644 odino/nixos/hardware.nix delete mode 100644 odino/nixos/locales.nix delete mode 100644 odino/nixos/networking.nix delete mode 100644 odino/nixos/programs/default.nix delete mode 100644 odino/nixos/services/default.nix (limited to 'odino') diff --git a/odino/home-manager/default.nix b/odino/home-manager/default.nix deleted file mode 100644 index bb6ef28..0000000 --- a/odino/home-manager/default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{...}: { - imports = [ - ./leo/home.nix - ]; -} diff --git a/odino/home-manager/leo/home.nix b/odino/home-manager/leo/home.nix deleted file mode 100644 index 332cb6e..0000000 --- a/odino/home-manager/leo/home.nix +++ /dev/null @@ -1,13 +0,0 @@ -{...}: { - imports = [ - ./programs - ]; - - home = { - username = "leo"; - homeDirectory = "/home/leo"; - }; - - # Version - home.stateVersion = "25.05"; -} diff --git a/odino/home-manager/leo/programs/default.nix b/odino/home-manager/leo/programs/default.nix deleted file mode 100644 index 711109e..0000000 --- a/odino/home-manager/leo/programs/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -{...}: { - imports = [ - ./zsh.nix - ./fastfetch.nix - ]; - - zsh.enable = true; - fastfetch.enable = true; -} diff --git a/odino/home-manager/leo/programs/fastfetch.nix b/odino/home-manager/leo/programs/fastfetch.nix deleted file mode 100644 index 94eccab..0000000 --- a/odino/home-manager/leo/programs/fastfetch.nix +++ /dev/null @@ -1,57 +0,0 @@ -{lib, config, ...}: { - options.fastfetch.enable = lib.mkEnableOption "fastfetch config"; - - config = lib.mkIf config.fastfetch.enable { - programs.fastfetch = { - enable = true; - - settings = { - display = { - size = { - maxPrefix = "MB"; - ndigits = 0; - spaceBeforeUnit = "never"; - }; - freq = { - ndigits = 3; - spaceBeforeUnit = "never"; - }; - }; - modules = [ - "title" - "separator" - "os" - { - type = "kernel"; - format = "{release}"; - } - { - type = "packages"; - combined = true; - } - "shell" - { - type = "display"; - compactType = "original"; - key = "Resolution"; - } - "de" - "wm" - "terminal" - "cpu" - { - type = "gpu"; - key = "GPU"; - format = "{name}"; - } - { - type = "memory"; - format = "{used} / {total}"; - } - "break" - "colors" - ]; - }; - }; - }; -} diff --git a/odino/home-manager/leo/programs/zsh.nix b/odino/home-manager/leo/programs/zsh.nix deleted file mode 100644 index c42d1a5..0000000 --- a/odino/home-manager/leo/programs/zsh.nix +++ /dev/null @@ -1,44 +0,0 @@ -{lib, config, ...}: { - options.zsh.enable = lib.mkEnableOption "zsh config"; - - config = lib.mkIf config.zsh.enable { - programs.zsh = { - enable = true; - enableCompletion = true; - enableVteIntegration = true; - syntaxHighlighting.enable = true; - - history.size = 10000; - - oh-my-zsh = { - enable = true; - theme = "fishy"; - plugins = [ "git" "ssh" ]; - }; - - shellAliases = { - ls = "ls -lh --color=auto"; - l = "ls"; - ll = "ls -a"; - ssh = "TERM=xterm-256color ssh"; - - update-boot = "sudo nixos-rebuild boot --flake ~/nixos#odino"; - update-system = "sudo nixos-rebuild switch --flake ~/nixos#odino"; - update-home = "home-manager switch --flake ~/nixos#odino"; - }; - - initContent = '' - # Ctrl + arrow keys - bindkey '^[Oc' forward-word - bindkey '^[Od' backward-word - bindkey '^[[1;5D' backward-word - bindkey '^[[1;5C' forward-word - bindkey '^H' backward-kill-word - - # Theme - autoload -U colors - colors - ''; - }; - }; -} diff --git a/odino/nixos/boot.nix b/odino/nixos/boot.nix deleted file mode 100644 index 52b2d3e..0000000 --- a/odino/nixos/boot.nix +++ /dev/null @@ -1,19 +0,0 @@ -{pkgs, ...}: { - boot = { - kernelPackages = pkgs.linuxPackages_6_18; # NOTE: soltanto versioni LTS per il server - kernelModules = [ "kvm-intel" ]; - kernelParams = [ "boot.shell_on_fail" ]; - - initrd = { - availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - kernelModules = [ ]; - }; - - loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; - - extraModulePackages = [ ]; - }; -} diff --git a/odino/nixos/default.nix b/odino/nixos/default.nix deleted file mode 100644 index 014a544..0000000 --- a/odino/nixos/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -{pkgs, ...}: { - imports = [ - ./hardware.nix - ./boot.nix - ./networking.nix - ./locales.nix - - ./services - ./programs - ]; - - # Experimental features - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - - # Users - users.users.leo = { - isNormalUser = true; - shell = pkgs.zsh; - - extraGroups = [ "wheel" "networkmanager" ]; - }; - - # Version - system.stateVersion = "25.05"; -} diff --git a/odino/nixos/hardware-configuration.nix b/odino/nixos/hardware-configuration.nix deleted file mode 100644 index 39fd4ba..0000000 --- a/odino/nixos/hardware-configuration.nix +++ /dev/null @@ -1,40 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/31eed536-5936-4814-bb60-73fcc4fabdc5"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/1DD7-85F5"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/8478cb29-8a67-4842-b9ed-16a226506cb7"; } - ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/odino/nixos/hardware.nix b/odino/nixos/hardware.nix deleted file mode 100644 index 7049ed2..0000000 --- a/odino/nixos/hardware.nix +++ /dev/null @@ -1,23 +0,0 @@ -{config, lib, pkgs, modulesPath, ...}: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/31eed536-5936-4814-bb60-73fcc4fabdc5"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/1DD7-85F5"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = [ - { device = "/dev/disk/by-uuid/8478cb29-8a67-4842-b9ed-16a226506cb7"; } - ]; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/odino/nixos/locales.nix b/odino/nixos/locales.nix deleted file mode 100644 index 2d2363d..0000000 --- a/odino/nixos/locales.nix +++ /dev/null @@ -1,20 +0,0 @@ -{...}: { - time.timeZone = "Europe/Rome"; - console.keyMap = "it"; - - i18n = { - defaultLocale = "en_US.UTF-8"; - - extraLocaleSettings = { - LC_ADDRESS = "it_IT.UTF-8"; - LC_IDENTIFICATION = "it_IT.UTF-8"; - LC_MEASUREMENT = "it_IT.UTF-8"; - LC_MONETARY = "it_IT.UTF-8"; - LC_NAME = "it_IT.UTF-8"; - LC_NUMERIC = "it_IT.UTF-8"; - LC_PAPER = "it_IT.UTF-8"; - LC_TELEPHONE = "it_IT.UTF-8"; - LC_TIME = "it_IT.UTF-8"; - }; - }; -} diff --git a/odino/nixos/networking.nix b/odino/nixos/networking.nix deleted file mode 100644 index ca9cf74..0000000 --- a/odino/nixos/networking.nix +++ /dev/null @@ -1,31 +0,0 @@ -{lib, ...}: { - networking = { - hostName = "odino"; - useDHCP = lib.mkDefault true; - - nameservers = [ "208.67.222.222" "208.67.220.220" ]; - - networkmanager.enable = true; - - firewall = { - enable = true; - - allowedTCPPorts = [ 22 ]; - allowedUDPPorts = [ 51820 ]; - }; - - wg-quick.interfaces."tunnel" = { - privateKeyFile = "/home/leo/.wireguard/private.key"; - address = [ "10.69.0.2/24" ]; - - peers = [ - { - publicKey = "rwUMCdhjQbQt9uGjljfdABj4DSJFgL62bzT13sg8LmU="; - allowedIPs = [ "10.69.0.0/24" ]; - endpoint = "leoflo.me:51820"; - persistentKeepalive = 25; - } - ]; - }; - }; -} diff --git a/odino/nixos/programs/default.nix b/odino/nixos/programs/default.nix deleted file mode 100644 index 1d0b03c..0000000 --- a/odino/nixos/programs/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{inputs, pkgs, ...}: { - imports = [ - inputs.home-manager.nixosModules.home-manager - ]; - - nixpkgs.config.allowUnfree = true; - - # Packages - environment.systemPackages = with pkgs; [ - rsync wireguard-tools - tmux vim - fastfetch btop dysk - - # Home manager - inputs.home-manager.packages.${pkgs.stdenv.hostPlatform.system}.home-manager - ]; - - # Zsh - programs.zsh.enable = true; - - # Git - programs.git = { - enable = true; - - config = { - init = { - defaultBranch = "master"; - }; - core = { - editor = "vim"; - }; - }; - }; - - # Docker - virtualisation.docker.enable = true; - users.extraGroups."docker".members = [ "leo" ]; -} diff --git a/odino/nixos/services/default.nix b/odino/nixos/services/default.nix deleted file mode 100644 index eeabc7c..0000000 --- a/odino/nixos/services/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{...}: { - # OpenSSH - services.openssh = { - enable = true; - - settings = { - PermitRootLogin = "no"; - PasswordAuthentication = false; - PrintMotd = false; - }; - }; -} -- cgit v1.3