aboutsummaryrefslogtreecommitdiffstats
path: root/flake
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-19 21:31:37 +0100
committerene <ene@sils.li>2023-02-19 21:31:37 +0100
commit0412e046d917f0d559ed893513373682b2c049e2 (patch)
tree67645f8142505e499199d4be87436c2d355baf6d /flake
parentFeat(lf): Add dependencies for the shell scripts (diff)
downloadnixos-config-0412e046d917f0d559ed893513373682b2c049e2.zip
Feat(lib): Import my system library
Diffstat (limited to '')
-rw-r--r--flake.nix61
1 files changed, 37 insertions, 24 deletions
diff --git a/flake.nix b/flake.nix
index d6130388..b01ed4de 100644
--- a/flake.nix
+++ b/flake.nix
@@ -52,39 +52,52 @@
snap-sync,
shell-library,
...
- } @ inputs: {
- nixosConfigurations.Tiamat = nixpkgs.lib.nixosSystem rec {
+ } @ inputs: let
+ pkgs = nixpkgs.legacyPackages.x86_64-linux;
+ in {
+ nixosConfigurations.Tiamat = let
+ sysLib = import ./lib {inherit pkgs shell-library;};
system = "x86_64-linux";
- specialArgs = inputs;
- modules = [
- ./hosts/desktop/configuration.nix
- agenix.nixosModules.default
+ in
+ nixpkgs.lib.nixosSystem {
+ inherit system;
+ specialArgs =
+ pkgs.lib.recursiveUpdate inputs
+ sysLib;
+ modules = [
+ ./hosts/desktop/configuration.nix
+ agenix.nixosModules.default
- home-manager.nixosModules.home-manager
- {
- home-manager = {
- useGlobalPkgs = true;
- useUserPackages = true;
- users.soispha = import ./home-manager;
- extraSpecialArgs = {
- inherit strip_js_comments;
- inherit user_js;
- inherit system;
- inherit neovim_config;
- inherit impermanence;
- inherit snap-sync;
+ home-manager.nixosModules.home-manager
+ {
+ home-manager = {
+ useGlobalPkgs = true;
+ useUserPackages = true;
+ users.soispha = import ./home-manager;
+ extraSpecialArgs = {
+ inherit
+ sysLib
+ strip_js_comments
+ user_js
+ system
+ neovim_config
+ impermanence
+ snap-sync
+ ;
+ };
};
- };
- }
- ];
- };
+ }
+ ];
+ };
nixosConfigurations.Spawn = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [./hosts/spawn/configuration.nix];
};
- packages."x86_64-linux".default = import ./bootstrap {pkgs = nixpkgs.legacyPackages.x86_64-linux; inherit shell-library;};
+ packages."x86_64-linux".default = import ./bootstrap {
+ inherit pkgs shell-library;
+ };
apps."x86_64-linux"."install" = {
type = "app";