Commit 7c883e5
Changed files (4)
hosts
chaser-kevin
modules
flake
gen-configuration
hosts
chaser-kevin
os-modules
nixos
base
hosts/chaser-kevin/nvidia.nix
@@ -36,5 +36,5 @@
# enable32Bit = true;
};
- nixpkgs.config.cudaSupport = true;
+ # nixpkgs.config.cudaSupport = true;
}
modules/flake/gen-configuration/nixos.nix
@@ -27,6 +27,22 @@ in {
value = withSystem config.flake.meta.host.hosts.${name}.system (
{pkgs, ...}:
inputs.nixpkgs.lib.nixosSystem {
+ # TODO: remove below after migrated all config to Dendritic Pattern
+ specialArgs =
+ inputs
+ // {
+ mylib = import ../../../lib {inherit lib;};
+ myvars = import ../../../vars {inherit lib;};
+ pkgs-unstable = import inputs.nixpkgs-unstable {
+ inherit (config.flake.meta.host.hosts.${name}) system;
+ config.allowUnfree = true;
+ };
+ pkgs-stable = import inputs.nixpkgs-stable {
+ inherit (config.flake.meta.host.hosts.${name}) system;
+ config.allowUnfree = true;
+ };
+ };
+
modules = [
module
{
modules/hosts/chaser-kevin/default.nix
@@ -1,4 +1,9 @@
-{config, ...}: {
+{
+ lib,
+ config,
+ inputs,
+ ...
+}: {
flake.meta.host.hosts.kevin = {
system = "x86_64-linux";
};
@@ -10,11 +15,44 @@
++ [
{
home-manager.users.hpcesia = {
- imports = with config.flake.modules.homeManager; [
- core
- ];
+ imports =
+ (with config.flake.modules.homeManager; [
+ core
+ ])
+ # TODO: remove below after migrated all config to Dendritic Pattern
+ ++ (map (lib.path.append config.flake.meta.rootPath) [
+ "home/linux/gui.nix"
+ "options/home/default.nix"
+ "hosts/chaser-kevin/home.nix"
+ ]);
};
}
- ];
+ ]
+ # TODO: remove below after migrated all config to Dendritic Pattern
+ ++ [
+ {
+ home-manager.extraSpecialArgs =
+ inputs
+ // {
+ mylib = import ../../../lib {inherit lib;};
+ myvars = import ../../../vars {inherit lib;};
+ pkgs-unstable = import inputs.nixpkgs-unstable {
+ inherit (config.flake.meta.host.hosts.kevin) system;
+ config.allowUnfree = true;
+ };
+ pkgs-stable = import inputs.nixpkgs-stable {
+ inherit (config.flake.meta.host.hosts.kevin) system;
+ config.allowUnfree = true;
+ };
+ };
+ }
+ ]
+ ++ (map (lib.path.append config.flake.meta.rootPath) [
+ "secrets/nixos.nix"
+ "os-modules/nixos/desktop.nix"
+ "options/nixos/default.nix"
+ "hosts/general.nix"
+ "hosts/chaser-kevin"
+ ]);
};
}
os-modules/nixos/base/nix.nix
@@ -4,7 +4,7 @@
...
}: {
# to install chrome, you need to enable unfree packages
- nixpkgs.config.allowUnfree = lib.mkForce true;
+ # nixpkgs.config.allowUnfree = lib.mkForce true;
programs.nh = {
enable = true;