From 78992b130bac3c5ceeca1786ca4393f6744b2119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 27 Feb 2024 09:47:30 +0100 Subject: [PATCH] Create host-specific folder --- flake.nix | 21 ++++++++++--------- .../prismo/configuration.nix | 0 hosts/prismo/default.nix | 7 +++++++ .../prismo/hardware-configuration.nix | 0 system/default.nix | 7 +++++++ fonts.nix => system/fonts.nix | 0 podman.nix => system/podman.nix | 0 users.nix => system/users.nix | 0 8 files changed, 25 insertions(+), 10 deletions(-) rename configuration.nix => hosts/prismo/configuration.nix (100%) create mode 100644 hosts/prismo/default.nix rename hardware-configuration.nix => hosts/prismo/hardware-configuration.nix (100%) create mode 100644 system/default.nix rename fonts.nix => system/fonts.nix (100%) rename podman.nix => system/podman.nix (100%) rename users.nix => system/users.nix (100%) diff --git a/flake.nix b/flake.nix index 518fe3c..33f294b 100644 --- a/flake.nix +++ b/flake.nix @@ -5,16 +5,17 @@ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; }; - outputs = { self, nixpkgs, ... }@inputs: { - nixosConfigurations.prismo = nixpkgs.lib.nixosSystem { + outputs = { self, nixpkgs, ... }@inputs: + let system = "x86_64-linux"; - specialArgs = { inherit inputs; }; - modules = [ - ./configuration.nix - ./podman.nix - ./fonts.nix - ./users.nix - ]; - }; + user = "torjus"; + in { + nixosConfigurations.prismo = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs self user; }; + modules = [ + ./hosts/prismo + ]; + }; }; } diff --git a/configuration.nix b/hosts/prismo/configuration.nix similarity index 100% rename from configuration.nix rename to hosts/prismo/configuration.nix diff --git a/hosts/prismo/default.nix b/hosts/prismo/default.nix new file mode 100644 index 0000000..bbee440 --- /dev/null +++ b/hosts/prismo/default.nix @@ -0,0 +1,7 @@ +{ inputs, self, pks, ...}: { + imports = [ + ./configuration.nix + ./hardware-configuration.nix + ../../system + ]; +} diff --git a/hardware-configuration.nix b/hosts/prismo/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to hosts/prismo/hardware-configuration.nix diff --git a/system/default.nix b/system/default.nix new file mode 100644 index 0000000..9bfcda9 --- /dev/null +++ b/system/default.nix @@ -0,0 +1,7 @@ +{ + imports = [ + ./podman.nix + ./fonts.nix + ./users.nix + ]; +} diff --git a/fonts.nix b/system/fonts.nix similarity index 100% rename from fonts.nix rename to system/fonts.nix diff --git a/podman.nix b/system/podman.nix similarity index 100% rename from podman.nix rename to system/podman.nix diff --git a/users.nix b/system/users.nix similarity index 100% rename from users.nix rename to system/users.nix