summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo <noreply@leoflo.me>2026-03-18 15:46:41 +0100
committerLeonardo <noreply@leoflo.me>2026-03-18 15:46:41 +0100
commitf9da3c9dda209386164de21ace2ac1f06ad29bc4 (patch)
tree66154fac9272cb8550354217451564854d329294
parent088e14b7dd051d1a526282a07adf22d96b830eca (diff)
downloadnixos-f9da3c9dda209386164de21ace2ac1f06ad29bc4.tar.gz
nixos-f9da3c9dda209386164de21ace2ac1f06ad29bc4.zip
rimosso nixos-anywhere
-rw-r--r--flake.nix12
-rw-r--r--systems/nixos-anywhere/configuration.nix22
-rw-r--r--systems/nixos-anywhere/disk-config.nix57
-rw-r--r--systems/nixos-anywhere/hardware-configuration.nix1
4 files changed, 0 insertions, 92 deletions
diff --git a/flake.nix b/flake.nix
index 761312b..7aac1ea 100644
--- a/flake.nix
+++ b/flake.nix
@@ -22,12 +22,6 @@
url = "git+https://codeberg.org/leoflo/obdautodoctor-nix?ref=refs/tags/v5.1.8";
inputs.nixpkgs.follows = "nixpkgs";
};
-
- disko = {
- url = "github:nix-community/disko";
- inputs.nixpkgs.follows = "nixpkgs";
- };
- nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
};
outputs = {nixpkgs, home-manager, disko, nixos-facter-modules, ...} @ inputs:
@@ -69,11 +63,5 @@
pkgs = pkgs;
modules = [ ./homes/server ];
};
-
- # NixOS anywhere
- nixosConfigurations."nixos-anywhere" = nixpkgs.lib.nixosSystem {
- specialArgs = { inherit system; };
- modules = [ ./systems/nixos-anywhere/configuration.nix disko.nixosModules.disko ];
- };
};
}
diff --git a/systems/nixos-anywhere/configuration.nix b/systems/nixos-anywhere/configuration.nix
deleted file mode 100644
index 46aedb8..0000000
--- a/systems/nixos-anywhere/configuration.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{modulesPath, pkgs, ...} @ args:
-{
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- (modulesPath + "/profiles/qemu-guest.nix")
- ./disk-config.nix
- ];
-
- boot.loader.grub = {
- efiSupport = true;
- efiInstallAsRemovable = true;
- };
-
- services.openssh.enable = true;
- users.users.root.openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMjRcsulH/b/fVyj+YQi3YchW6wLiWvpgiM+iz4tokSD leo@hermes"
- ] ++ (args.extraPublicKeys or []);
-
- environment.systemPackages = with pkgs; [ curl gitMinimal ];
-
- system.stateVersion = "25.05";
-}
diff --git a/systems/nixos-anywhere/disk-config.nix b/systems/nixos-anywhere/disk-config.nix
deleted file mode 100644
index fd6371c..0000000
--- a/systems/nixos-anywhere/disk-config.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{ lib, ... }: {
- disko.devices = {
- disk.disk1 = {
- device = lib.mkDefault "/dev/sda";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- boot = {
- name = "boot";
- size = "1M";
- type = "EF02";
- };
-
- esp = {
- name = "ESP";
- size = "500M";
- type = "EF00";
- content = {
- type = "filesystem";
- format = "vfat";
- mountpoint = "/boot";
- };
- };
-
- root = {
- name = "root";
- size = "100%";
- content = {
- type = "lvm_pv";
- vg = "pool";
- };
- };
- };
- };
- };
-
- lvm_vg = {
- pool = {
- type = "lvm_vg";
- lvs = {
- root = {
- size = "100%FREE";
- content = {
- type = "filesystem";
- format = "ext4";
- mountpoint = "/";
- mountOptions = [
- "defaults"
- ];
- };
- };
- };
- };
- };
- };
-}
diff --git a/systems/nixos-anywhere/hardware-configuration.nix b/systems/nixos-anywhere/hardware-configuration.nix
deleted file mode 100644
index a40df93..0000000
--- a/systems/nixos-anywhere/hardware-configuration.nix
+++ /dev/null
@@ -1 +0,0 @@
-throw "Have you forgotten to run nixos-anywhere with `--generate-hardware-config nixos-generate-config ./hardware-configuration.nix`?"