From a5cc5ad811336a31211ba0e1b030b1d8ebe05b83 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 22 Jul 2025 20:55:21 +0100 Subject: [PATCH 1/8] Initial commit --- .ignore | 1 + flake.lock | 77 +++++++++++++++++++ flake.nix | 15 ++++ modules/flake-parts.nix | 7 ++ modules/formatting.nix | 7 ++ modules/git.nix | 8 ++ modules/hosts/corgi/configuration.nix | 77 +++++++++++++++++++ .../hosts/corgi/hardware-configuration.nix | 57 ++++++++++++++ modules/hosts/corgi/imports.nix | 7 ++ modules/nixos-configurations.nix | 13 ++++ modules/systems.nix | 8 ++ modules/tmux.nix | 8 ++ todo.txt | 2 + 13 files changed, 287 insertions(+) create mode 100644 .ignore create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 modules/flake-parts.nix create mode 100644 modules/formatting.nix create mode 100644 modules/git.nix create mode 100644 modules/hosts/corgi/configuration.nix create mode 100644 modules/hosts/corgi/hardware-configuration.nix create mode 100644 modules/hosts/corgi/imports.nix create mode 100644 modules/nixos-configurations.nix create mode 100644 modules/systems.nix create mode 100644 modules/tmux.nix create mode 100644 todo.txt diff --git a/.ignore b/.ignore new file mode 100644 index 0000000..6eca100 --- /dev/null +++ b/.ignore @@ -0,0 +1 @@ +/.git/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..32f18f1 --- /dev/null +++ b/flake.lock @@ -0,0 +1,77 @@ +{ + "nodes": { + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1753121425, + "narHash": "sha256-TVcTNvOeWWk1DXljFxVRp+E0tzG1LhrVjOGGoMHuXio=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "644e0fc48951a860279da645ba77fe4a6e814c5e", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "import-tree": { + "locked": { + "lastModified": 1752730890, + "narHash": "sha256-GES8fapSLGz36MMPRVNkSUWXUTtqvGQNXHjRmRLfJUY=", + "owner": "vic", + "repo": "import-tree", + "rev": "6ebb8cb87987b20264c09296166543fd3761d274", + "type": "github" + }, + "original": { + "owner": "vic", + "repo": "import-tree", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1752950548, + "narHash": "sha256-NS6BLD0lxOrnCiEOcvQCDVPXafX1/ek1dfJHX1nUIzc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c87b95e25065c028d31a94f06a62927d18763fdf", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1751159883, + "narHash": "sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "14a40a1d7fb9afa4739275ac642ed7301a9ba1ab", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-parts": "flake-parts", + "import-tree": "import-tree", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..22bc84d --- /dev/null +++ b/flake.nix @@ -0,0 +1,15 @@ +{ + inputs = { + flake-parts.url = "github:hercules-ci/flake-parts"; + import-tree.url = "github:vic/import-tree"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = + inputs: + inputs.flake-parts.lib.mkFlake { inherit inputs; } { + imports = [ + (inputs.import-tree ./modules) + ]; + }; +} diff --git a/modules/flake-parts.nix b/modules/flake-parts.nix new file mode 100644 index 0000000..1a92203 --- /dev/null +++ b/modules/flake-parts.nix @@ -0,0 +1,7 @@ +{ inputs, ... }: + +{ + imports = [ + inputs.flake-parts.flakeModules.modules + ]; +} diff --git a/modules/formatting.nix b/modules/formatting.nix new file mode 100644 index 0000000..3c962b1 --- /dev/null +++ b/modules/formatting.nix @@ -0,0 +1,7 @@ +{ + perSystem = + { pkgs, ... }: + { + formatter = pkgs.nixfmt-rfc-style; + }; +} diff --git a/modules/git.nix b/modules/git.nix new file mode 100644 index 0000000..6c50893 --- /dev/null +++ b/modules/git.nix @@ -0,0 +1,8 @@ +{ + flake.modules.nixos.pc = { pkgs, ... }: + { + environment.systemPackages = with pkgs; [ + git + ]; + }; +} diff --git a/modules/hosts/corgi/configuration.nix b/modules/hosts/corgi/configuration.nix new file mode 100644 index 0000000..2a397e8 --- /dev/null +++ b/modules/hosts/corgi/configuration.nix @@ -0,0 +1,77 @@ +{ + flake.modules.nixos."nixosConfigurations/corgi" = + { + config, + pkgs, + stateVersion, + ... + }: + { + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.networkmanager.enable = true; + + time.timeZone = "Europe/London"; + + i18n.defaultLocale = "en_GB.UTF-8"; + + i18n.extraLocaleSettings = { + LC_ADDRESS = "en_GB.UTF-8"; + LC_IDENTIFICATION = "en_GB.UTF-8"; + LC_MEASUREMENT = "en_GB.UTF-8"; + LC_MONETARY = "en_GB.UTF-8"; + LC_NAME = "en_GB.UTF-8"; + LC_NUMERIC = "en_GB.UTF-8"; + LC_PAPER = "en_GB.UTF-8"; + LC_TELEPHONE = "en_GB.UTF-8"; + LC_TIME = "en_GB.UTF-8"; + }; + + services.xserver.enable = true; + + services.xserver.displayManager.lightdm.enable = true; + services.xserver.desktopManager.cinnamon.enable = true; + + services.xserver.xkb = { + layout = "gb"; + variant = ""; + }; + + console.keyMap = "uk"; + + services.printing.enable = true; + + services.pulseaudio.enable = false; + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + + }; + + users.users.oliver = { + isNormalUser = true; + description = "oliver"; + extraGroups = [ + "networkmanager" + "wheel" + ]; + packages = with pkgs; [ + ]; + }; + + programs.firefox.enable = true; + + nixpkgs.config.allowUnfree = true; + + environment.systemPackages = with pkgs; [ + ]; + + services.openssh.enable = true; + + system.stateVersion = stateVersion; + }; +} diff --git a/modules/hosts/corgi/hardware-configuration.nix b/modules/hosts/corgi/hardware-configuration.nix new file mode 100644 index 0000000..d83e187 --- /dev/null +++ b/modules/hosts/corgi/hardware-configuration.nix @@ -0,0 +1,57 @@ +{ + flake.modules.nixos."nixosConfigurations/corgi" = + { + config, + pkgs, + modulesPath, + lib, + ... + }: + { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ + "xhci_pci" + "ahci" + "usbhid" + "usb_storage" + "sd_mod" + "sr_mod" + "rtsx_usb_sdmmc" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/076c5319-e9b6-4985-b86b-5b4287be17ba"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/E090-18D3"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/b29480eb-56cf-4353-9b98-790e4e2512b3"; } + ]; + + # 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.enp1s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + }; +} diff --git a/modules/hosts/corgi/imports.nix b/modules/hosts/corgi/imports.nix new file mode 100644 index 0000000..1cfb071 --- /dev/null +++ b/modules/hosts/corgi/imports.nix @@ -0,0 +1,7 @@ +{ config, ... }: + +{ + flake.modules.nixos."nixosConfigurations/corgi".imports = with config.flake.modules.nixos; [ + pc + ]; +} diff --git a/modules/nixos-configurations.nix b/modules/nixos-configurations.nix new file mode 100644 index 0000000..002a348 --- /dev/null +++ b/modules/nixos-configurations.nix @@ -0,0 +1,13 @@ +{ config, inputs, ... }: + +{ + flake.nixosConfigurations.corgi = inputs.nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + + modules = [ config.flake.modules.nixos."nixosConfigurations/corgi" ]; + + specialArgs = { + stateVersion = "25.05"; + }; + }; +} diff --git a/modules/systems.nix b/modules/systems.nix new file mode 100644 index 0000000..8669711 --- /dev/null +++ b/modules/systems.nix @@ -0,0 +1,8 @@ +{ + systems = [ + "x86_64-linux" + "aarch64-linux" + "aarch64-darwin" + "x86_64-darwin" + ]; +} diff --git a/modules/tmux.nix b/modules/tmux.nix new file mode 100644 index 0000000..ae86c3b --- /dev/null +++ b/modules/tmux.nix @@ -0,0 +1,8 @@ +{ + flake.modules.nixos.pc = { pkgs, ... }: + { + environment.systemPackages = with pkgs; [ + tmux + ]; + }; +} diff --git a/todo.txt b/todo.txt new file mode 100644 index 0000000..56da98d --- /dev/null +++ b/todo.txt @@ -0,0 +1,2 @@ +add home manager +switch git to use home manager From 7ecb185ea64d7529fa89a027b5d1b9f3b9dff810 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 22 Jul 2025 20:55:21 +0100 Subject: [PATCH 2/8] Add owner.nix --- modules/home-manager.nix | 2 ++ modules/owner.nix | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 modules/home-manager.nix create mode 100644 modules/owner.nix diff --git a/modules/home-manager.nix b/modules/home-manager.nix new file mode 100644 index 0000000..2c63c08 --- /dev/null +++ b/modules/home-manager.nix @@ -0,0 +1,2 @@ +{ +} diff --git a/modules/owner.nix b/modules/owner.nix new file mode 100644 index 0000000..ef77e62 --- /dev/null +++ b/modules/owner.nix @@ -0,0 +1,21 @@ +{ config, ... }: + +{ + flake = { + meta.owner = { + username = "opdavies"; + }; + + modules = { + nixos.pc = { + users.users.${config.flake.meta.owner.username} = { + isNormalUser = true; + initialPassword = ""; + extraGroups = [ "input" "wheel" ]; + }; + + nix.settings.trusted-users = [ config.flake.meta.owner.username ]; + }; + }; + }; +} From 21a8bd3cb3d4845fc852e460dc2db6c7bda591eb Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 22 Jul 2025 20:55:21 +0100 Subject: [PATCH 3/8] Add home-manager --- modules/home-manager/base.nix | 14 ++++++++++++++ modules/home-manager/nixos.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 modules/home-manager/base.nix create mode 100644 modules/home-manager/nixos.nix diff --git a/modules/home-manager/base.nix b/modules/home-manager/base.nix new file mode 100644 index 0000000..bbd936b --- /dev/null +++ b/modules/home-manager/base.nix @@ -0,0 +1,14 @@ +{ config, ... }: + +{ + flake.modules.homeManager.base = args: { + home = { + homeDirectory = "/home/${config.flake.meta.owner.username}"; + username = config.flake.meta.owner.username; + }; + + programs.home-manager.enable = true; + + systemd.user.startServices = "sd-switch"; + }; +} diff --git a/modules/home-manager/nixos.nix b/modules/home-manager/nixos.nix new file mode 100644 index 0000000..cdbfd45 --- /dev/null +++ b/modules/home-manager/nixos.nix @@ -0,0 +1,28 @@ +{ config, inputs, ... }: + +{ + flake.modules.nixos.pc = { + imports = [ inputs.home-manager.nixosModules.home-manager ]; + + home-manager = { + useGlobalPkgs = true; + extraSpecialArgs.hasGlobalPkgs = true; + + # https://github.com/nix-community/home-manager/issues/6770 + # useUserPackages = true; + + users.${config.flake.meta.owner.username}.imports = [ + ( + { osConfig, ... }: + + { + home.stateVersion = osConfig.system.stateVersion; + } + ) + + config.flake.modules.homeManager.base + # config.flake.modules.homeManager.gui + ]; + }; + }; +} From bac57f149336949cf6cc8173ee4ff1a6ffaa6bf5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 22 Jul 2025 20:55:21 +0100 Subject: [PATCH 4/8] Refactor to use Home Manager --- flake.lock | 22 ++++++++++++++++++++++ flake.nix | 6 ++++++ modules/git.nix | 9 +++------ modules/tmux.nix | 9 +++------ 4 files changed, 34 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index 32f18f1..c156dce 100644 --- a/flake.lock +++ b/flake.lock @@ -18,6 +18,27 @@ "type": "github" } }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1753180535, + "narHash": "sha256-KEtlzMs2O7FDvciFtjk9W4hyau013Pj9qZNK9a0PxEc=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "847711c7ffa9944b0c5c39a8342ac8eb6a9f9abc", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "master", + "repo": "home-manager", + "type": "github" + } + }, "import-tree": { "locked": { "lastModified": 1752730890, @@ -67,6 +88,7 @@ "root": { "inputs": { "flake-parts": "flake-parts", + "home-manager": "home-manager", "import-tree": "import-tree", "nixpkgs": "nixpkgs" } diff --git a/flake.nix b/flake.nix index 22bc84d..641916a 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,12 @@ { inputs = { flake-parts.url = "github:hercules-ci/flake-parts"; + + home-manager = { + inputs.nixpkgs.follows = "nixpkgs"; + url = "github:nix-community/home-manager/master"; + }; + import-tree.url = "github:vic/import-tree"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; diff --git a/modules/git.nix b/modules/git.nix index 6c50893..f5ca655 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -1,8 +1,5 @@ { - flake.modules.nixos.pc = { pkgs, ... }: - { - environment.systemPackages = with pkgs; [ - git - ]; - }; + flake.modules.homeManager.base { + programs.git.enable = true; + }; } diff --git a/modules/tmux.nix b/modules/tmux.nix index ae86c3b..2a8cdd6 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -1,8 +1,5 @@ { - flake.modules.nixos.pc = { pkgs, ... }: - { - environment.systemPackages = with pkgs; [ - tmux - ]; - }; + flake.modules.homeManager.base = { + programs.tmux.enable = true; + }; } From 616d1672ae30092ab5da5f49987aef72ecf1870c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 22 Jul 2025 20:55:21 +0100 Subject: [PATCH 5/8] Configure Git --- modules/git.nix | 11 +++++++++-- modules/owner.nix | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/git.nix b/modules/git.nix index f5ca655..25351d1 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -1,5 +1,12 @@ +{ config, ... }: + { - flake.modules.homeManager.base { - programs.git.enable = true; + flake.modules.homeManager.base = { + programs.git = { + enable = true; + + userEmail = config.flake.meta.owner.email; + userName = config.flake.meta.owner.name; + }; }; } diff --git a/modules/owner.nix b/modules/owner.nix index ef77e62..6ea731a 100644 --- a/modules/owner.nix +++ b/modules/owner.nix @@ -3,6 +3,8 @@ { flake = { meta.owner = { + email = "oliver@oliverdavies.uk"; + name = "Oliver Davies"; username = "opdavies"; }; From 70f38ff32d934889a52d731ccc3843f84fbf7811 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 22 Jul 2025 20:55:21 +0100 Subject: [PATCH 6/8] Add eric user --- modules/eric.nix | 16 ++++++++++++++++ modules/hosts/corgi/imports.nix | 1 + modules/meta-output.nix | 7 +++++++ 3 files changed, 24 insertions(+) create mode 100644 modules/eric.nix create mode 100644 modules/meta-output.nix diff --git a/modules/eric.nix b/modules/eric.nix new file mode 100644 index 0000000..581d121 --- /dev/null +++ b/modules/eric.nix @@ -0,0 +1,16 @@ +{ config, ... }: + +{ + flake = { + meta.eric.username = "eric"; + + modules = { + nixos.eric = { + users.users.${config.flake.meta.eric.username} = { + isNormalUser = true; + initialPassword = ""; + }; + }; + }; + }; +} diff --git a/modules/hosts/corgi/imports.nix b/modules/hosts/corgi/imports.nix index 1cfb071..57761ae 100644 --- a/modules/hosts/corgi/imports.nix +++ b/modules/hosts/corgi/imports.nix @@ -2,6 +2,7 @@ { flake.modules.nixos."nixosConfigurations/corgi".imports = with config.flake.modules.nixos; [ + eric pc ]; } diff --git a/modules/meta-output.nix b/modules/meta-output.nix new file mode 100644 index 0000000..dbf69e5 --- /dev/null +++ b/modules/meta-output.nix @@ -0,0 +1,7 @@ +{ lib, ... }: + +{ + options.flake.meta = lib.mkOption { + type = lib.types.anything; + }; +} From 7f0d5e8ed1bb7d9274ec19ca44ce00b376b3fafc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 22 Jul 2025 20:55:21 +0100 Subject: [PATCH 7/8] Remove oliver user --- modules/hosts/corgi/configuration.nix | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/hosts/corgi/configuration.nix b/modules/hosts/corgi/configuration.nix index 2a397e8..8065ce9 100644 --- a/modules/hosts/corgi/configuration.nix +++ b/modules/hosts/corgi/configuration.nix @@ -52,17 +52,6 @@ }; - users.users.oliver = { - isNormalUser = true; - description = "oliver"; - extraGroups = [ - "networkmanager" - "wheel" - ]; - packages = with pkgs; [ - ]; - }; - programs.firefox.enable = true; nixpkgs.config.allowUnfree = true; From e96380d8c0286cd364ab93577e57c70dc084afb9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 29 Sep 2025 23:13:34 +0100 Subject: [PATCH 8/8] Move all files to nix-dendritic-example/ --- .ignore => nix-dendritic-example/.ignore | 0 flake.lock => nix-dendritic-example/flake.lock | 0 flake.nix => nix-dendritic-example/flake.nix | 0 {modules => nix-dendritic-example/modules}/eric.nix | 0 {modules => nix-dendritic-example/modules}/flake-parts.nix | 0 {modules => nix-dendritic-example/modules}/formatting.nix | 0 {modules => nix-dendritic-example/modules}/git.nix | 0 {modules => nix-dendritic-example/modules}/home-manager.nix | 0 {modules => nix-dendritic-example/modules}/home-manager/base.nix | 0 {modules => nix-dendritic-example/modules}/home-manager/nixos.nix | 0 .../modules}/hosts/corgi/configuration.nix | 0 .../modules}/hosts/corgi/hardware-configuration.nix | 0 .../modules}/hosts/corgi/imports.nix | 0 {modules => nix-dendritic-example/modules}/meta-output.nix | 0 .../modules}/nixos-configurations.nix | 0 {modules => nix-dendritic-example/modules}/owner.nix | 0 {modules => nix-dendritic-example/modules}/systems.nix | 0 {modules => nix-dendritic-example/modules}/tmux.nix | 0 todo.txt => nix-dendritic-example/todo.txt | 0 19 files changed, 0 insertions(+), 0 deletions(-) rename .ignore => nix-dendritic-example/.ignore (100%) rename flake.lock => nix-dendritic-example/flake.lock (100%) rename flake.nix => nix-dendritic-example/flake.nix (100%) rename {modules => nix-dendritic-example/modules}/eric.nix (100%) rename {modules => nix-dendritic-example/modules}/flake-parts.nix (100%) rename {modules => nix-dendritic-example/modules}/formatting.nix (100%) rename {modules => nix-dendritic-example/modules}/git.nix (100%) rename {modules => nix-dendritic-example/modules}/home-manager.nix (100%) rename {modules => nix-dendritic-example/modules}/home-manager/base.nix (100%) rename {modules => nix-dendritic-example/modules}/home-manager/nixos.nix (100%) rename {modules => nix-dendritic-example/modules}/hosts/corgi/configuration.nix (100%) rename {modules => nix-dendritic-example/modules}/hosts/corgi/hardware-configuration.nix (100%) rename {modules => nix-dendritic-example/modules}/hosts/corgi/imports.nix (100%) rename {modules => nix-dendritic-example/modules}/meta-output.nix (100%) rename {modules => nix-dendritic-example/modules}/nixos-configurations.nix (100%) rename {modules => nix-dendritic-example/modules}/owner.nix (100%) rename {modules => nix-dendritic-example/modules}/systems.nix (100%) rename {modules => nix-dendritic-example/modules}/tmux.nix (100%) rename todo.txt => nix-dendritic-example/todo.txt (100%) diff --git a/.ignore b/nix-dendritic-example/.ignore similarity index 100% rename from .ignore rename to nix-dendritic-example/.ignore diff --git a/flake.lock b/nix-dendritic-example/flake.lock similarity index 100% rename from flake.lock rename to nix-dendritic-example/flake.lock diff --git a/flake.nix b/nix-dendritic-example/flake.nix similarity index 100% rename from flake.nix rename to nix-dendritic-example/flake.nix diff --git a/modules/eric.nix b/nix-dendritic-example/modules/eric.nix similarity index 100% rename from modules/eric.nix rename to nix-dendritic-example/modules/eric.nix diff --git a/modules/flake-parts.nix b/nix-dendritic-example/modules/flake-parts.nix similarity index 100% rename from modules/flake-parts.nix rename to nix-dendritic-example/modules/flake-parts.nix diff --git a/modules/formatting.nix b/nix-dendritic-example/modules/formatting.nix similarity index 100% rename from modules/formatting.nix rename to nix-dendritic-example/modules/formatting.nix diff --git a/modules/git.nix b/nix-dendritic-example/modules/git.nix similarity index 100% rename from modules/git.nix rename to nix-dendritic-example/modules/git.nix diff --git a/modules/home-manager.nix b/nix-dendritic-example/modules/home-manager.nix similarity index 100% rename from modules/home-manager.nix rename to nix-dendritic-example/modules/home-manager.nix diff --git a/modules/home-manager/base.nix b/nix-dendritic-example/modules/home-manager/base.nix similarity index 100% rename from modules/home-manager/base.nix rename to nix-dendritic-example/modules/home-manager/base.nix diff --git a/modules/home-manager/nixos.nix b/nix-dendritic-example/modules/home-manager/nixos.nix similarity index 100% rename from modules/home-manager/nixos.nix rename to nix-dendritic-example/modules/home-manager/nixos.nix diff --git a/modules/hosts/corgi/configuration.nix b/nix-dendritic-example/modules/hosts/corgi/configuration.nix similarity index 100% rename from modules/hosts/corgi/configuration.nix rename to nix-dendritic-example/modules/hosts/corgi/configuration.nix diff --git a/modules/hosts/corgi/hardware-configuration.nix b/nix-dendritic-example/modules/hosts/corgi/hardware-configuration.nix similarity index 100% rename from modules/hosts/corgi/hardware-configuration.nix rename to nix-dendritic-example/modules/hosts/corgi/hardware-configuration.nix diff --git a/modules/hosts/corgi/imports.nix b/nix-dendritic-example/modules/hosts/corgi/imports.nix similarity index 100% rename from modules/hosts/corgi/imports.nix rename to nix-dendritic-example/modules/hosts/corgi/imports.nix diff --git a/modules/meta-output.nix b/nix-dendritic-example/modules/meta-output.nix similarity index 100% rename from modules/meta-output.nix rename to nix-dendritic-example/modules/meta-output.nix diff --git a/modules/nixos-configurations.nix b/nix-dendritic-example/modules/nixos-configurations.nix similarity index 100% rename from modules/nixos-configurations.nix rename to nix-dendritic-example/modules/nixos-configurations.nix diff --git a/modules/owner.nix b/nix-dendritic-example/modules/owner.nix similarity index 100% rename from modules/owner.nix rename to nix-dendritic-example/modules/owner.nix diff --git a/modules/systems.nix b/nix-dendritic-example/modules/systems.nix similarity index 100% rename from modules/systems.nix rename to nix-dendritic-example/modules/systems.nix diff --git a/modules/tmux.nix b/nix-dendritic-example/modules/tmux.nix similarity index 100% rename from modules/tmux.nix rename to nix-dendritic-example/modules/tmux.nix diff --git a/todo.txt b/nix-dendritic-example/todo.txt similarity index 100% rename from todo.txt rename to nix-dendritic-example/todo.txt