Compare commits
3 Commits
6d5e6add02
...
68bf971992
| Author | SHA1 | Date | |
|---|---|---|---|
| 68bf971992 | |||
| 80e74d3283 | |||
| f93eecfcb1 |
22
flake.nix
22
flake.nix
@@ -51,6 +51,9 @@
|
|||||||
nvim,
|
nvim,
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
lib = inputs.nixpkgs.lib;
|
||||||
|
utils = import ./utils { inherit lib; };
|
||||||
|
hostDirNames = utils.dirNames ./hosts;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
@@ -59,20 +62,13 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; # <https://github.com/nix-community/nixd/blob/main/nixd/docs/configuration.md>
|
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; # <https://github.com/nix-community/nixd/blob/main/nixd/docs/configuration.md>
|
||||||
nixosConfigurations = {
|
nixosConfigurations = lib.genAttrs hostDirNames (
|
||||||
vm = nixpkgs.lib.nixosSystem {
|
host:
|
||||||
modules = [ ./hosts/vm ];
|
nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [ ./hosts/${host} ];
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
};
|
}
|
||||||
andromache = nixpkgs.lib.nixosSystem {
|
);
|
||||||
modules = [ ./hosts/andromache ];
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
};
|
|
||||||
astyanax = nixpkgs.lib.nixosSystem {
|
|
||||||
modules = [ ./hosts/astyanax ];
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
work = home-manager.lib.homeManagerConfiguration {
|
work = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|||||||
@@ -1 +1,19 @@
|
|||||||
import ../astyanax
|
{
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(import ../astyanax {
|
||||||
|
inherit inputs;
|
||||||
|
inherit config;
|
||||||
|
inherit pkgs;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.taskwarrior.config.recurrence = lib.mkForce "on";
|
||||||
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
# config.sops.secrets."taskwarrior_sync_encryption_secret".path
|
# config.sops.secrets."taskwarrior_sync_encryption_secret".path
|
||||||
# }";
|
# }";
|
||||||
# };
|
# };
|
||||||
recurrence = "off"; # TODO: enable only on andromache
|
recurrence = "off";
|
||||||
};
|
};
|
||||||
extraConfig = "include ${config.sops.templates."taskrc.d/sync".path}";
|
extraConfig = "include ${config.sops.templates."taskrc.d/sync".path}";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ in
|
|||||||
inherit inputs;
|
inherit inputs;
|
||||||
inherit config;
|
inherit config;
|
||||||
})
|
})
|
||||||
|
../../modules/docker.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
secrets.username = username;
|
secrets.username = username;
|
||||||
@@ -87,6 +88,7 @@ in
|
|||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${username} = import ../../home/hosts/andromache {
|
users.${username} = import ../../home/hosts/andromache {
|
||||||
|
inherit lib;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
inherit config;
|
inherit config;
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|||||||
9
modules/docker.nix
Normal file
9
modules/docker.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
virtualisation.docker = {
|
||||||
|
enable = false;
|
||||||
|
rootless = {
|
||||||
|
enable = true;
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
utils/default.nix
Normal file
7
utils/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ lib }:
|
||||||
|
|
||||||
|
{
|
||||||
|
dirNames =
|
||||||
|
path:
|
||||||
|
builtins.attrNames (lib.filterAttrs (name: type: type == "directory") (builtins.readDir path));
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user