1
0
forked from colin/nix-files

factor out the uninsane machine a bit better

This commit is contained in:
colin 2022-05-21 00:30:29 -07:00
parent 298e7bc8ec
commit f5d313c0ea
17 changed files with 34 additions and 43 deletions

View File

@ -1,21 +0,0 @@
{ ... }:
{
imports = [
./fs.nix
./hardware.nix
./net.nix
./users.nix
./services/duplicity.nix
./services/gitea.nix
./services/jackett.nix
./services/jellyfin.nix
./services/matrix.nix
./services/nginx.nix
./services/pleroma.nix
./services/postfix.nix
./services/postgres.nix
./services/transmission.nix
];
}

View File

@ -22,23 +22,15 @@
# XXX colin: is this right?
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, pkgs-gitea, pkgs-mobile, mobile-nixos, home-manager }: {
nixosConfigurations.uninsane = nixpkgs.lib.nixosSystem {
pkgs = self.packages.aarch_64-linux.pkgs;
pkgs = self.packages.aarch64-linux.pkgs;
system = "aarch64-linux";
modules = [
./configuration.nix
./cfg
./uninsane
./modules
({ pkgs, ... }: {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
})
];
};
@ -51,6 +43,7 @@
./lappy
];
};
nixosConfigurations.pda = pkgs-mobile.lib.nixosSystem {
# inherit (self.packages.aarch64-linux) pkgs;
system = "aarch64-linux";
@ -89,6 +82,7 @@
# })
];
};
packages = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all (system:
{
pkgs = import nixpkgs {
@ -119,17 +113,6 @@
}
);
# flake-utils.lib.eachDefaultSystem (system:
# let pkgs = nixpkgs.legacyPackages.${system};
# in {
# # packages.hello = pkgs.hello;
# # devShell = pkgs.mkShell { buildInputs = [ pkgs.hello pkgs.cowsay ]; };
# nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
# system = "${system}";
# };
# }
# );
};
}

29
uninsane/default.nix Normal file
View File

@ -0,0 +1,29 @@
{ ... }:
{
imports = [
./fs.nix
./hardware.nix
./net.nix
./users.nix
./services/duplicity.nix
./services/gitea.nix
./services/jackett.nix
./services/jellyfin.nix
./services/matrix.nix
./services/nginx.nix
./services/pleroma.nix
./services/postfix.nix
./services/postgres.nix
./services/transmission.nix
];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
}