aboutsummaryrefslogtreecommitdiff
path: root/modules/flake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/flake')
-rw-r--r--modules/flake/darwin.nix33
-rw-r--r--modules/flake/home.nix23
-rw-r--r--modules/flake/nixos.nix63
-rw-r--r--modules/flake/systems.nix9
4 files changed, 0 insertions, 128 deletions
diff --git a/modules/flake/darwin.nix b/modules/flake/darwin.nix
deleted file mode 100644
index cc59bf6..0000000
--- a/modules/flake/darwin.nix
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- inputs,
- config,
- self,
- ...
-}:
-
-{
- flake.darwinConfigurations = {
- lilith = inputs.nix-darwin.lib.darwinSystem {
- system = "aarch64-darwin";
- specialArgs = {
- inherit inputs;
- host = "lilith";
- };
- modules = [
- inputs.home-manager.darwinModules.home-manager
- {
- home-manager.extraSpecialArgs = { inherit inputs; };
- home-manager.sharedModules = [ config.flake.homeModules.default ];
- }
- (self + /hosts/lilith/configuration.nix)
- {
- nixpkgs.config.allowUnfree = true;
- nix.settings.experimental-features = [
- "nix-command"
- "flakes"
- ];
- }
- ];
- };
- };
-}
diff --git a/modules/flake/home.nix b/modules/flake/home.nix
deleted file mode 100644
index 2ac2b45..0000000
--- a/modules/flake/home.nix
+++ /dev/null
@@ -1,23 +0,0 @@
-{ inputs, self, ... }:
-
-let
- inherit (inputs.nixpkgs) lib;
- import-tree = inputs.import-tree.withLib lib;
-
- homeModuleFiles = import-tree.leafs (self + /modules/home);
-in
-{
- imports = [
- inputs.home-manager.flakeModules.home-manager
- ];
-
- flake.homeModules = {
- default = {
- imports = homeModuleFiles ++ [
- inputs.sops-nix.homeManagerModules.sops
- inputs.nixcord.homeModules.nixcord
- inputs.spicetify-nix.homeManagerModules.spicetify
- ];
- };
- };
-}
diff --git a/modules/flake/nixos.nix b/modules/flake/nixos.nix
deleted file mode 100644
index 40145ea..0000000
--- a/modules/flake/nixos.nix
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- inputs,
- config,
- self,
- ...
-}:
-
-let
- inherit (inputs.nixpkgs) lib;
- import-tree = inputs.import-tree.withLib lib;
-
- # Use import-tree.leafs to get list of NixOS module paths
- nixosModuleFiles = import-tree.leafs (self + /modules/nixos);
-
- # Common NixOS modules for all hosts
- commonNixosModules = nixosModuleFiles ++ [
- {
- nixpkgs.config.allowUnfree = true;
- nix.settings.experimental-features = [
- "nix-command"
- "flakes"
- ];
- }
- ];
-
- # Home-manager modules for hosts that use it
- homeManagerModules = [
- inputs.home-manager.nixosModules.home-manager
- {
- home-manager.backupFileExtension = "backup";
- home-manager.extraSpecialArgs = { inherit inputs; };
- home-manager.sharedModules = [ config.flake.homeModules.default ];
- }
- ];
-in
-{
- flake.nixosConfigurations = {
- adam = lib.nixosSystem {
- system = "x86_64-linux";
- specialArgs = {
- inherit inputs;
- host = "adam";
- };
- modules =
- commonNixosModules
- ++ homeManagerModules
- ++ [
- (self + /hosts/adam/configuration.nix)
- ];
- };
-
- sachiel = lib.nixosSystem {
- system = "x86_64-linux";
- specialArgs = {
- inherit inputs;
- host = "sachiel";
- };
- modules = commonNixosModules ++ [
- (self + /hosts/sachiel/configuration.nix)
- ];
- };
- };
-}
diff --git a/modules/flake/systems.nix b/modules/flake/systems.nix
deleted file mode 100644
index e66e2e1..0000000
--- a/modules/flake/systems.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{ ... }:
-
-{
- # Define systems for perSystem (even if we don't use it much)
- systems = [
- "x86_64-linux"
- "aarch64-darwin"
- ];
-}