Skip to content

Commit

Permalink
Update hakase configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Mar 17, 2024
1 parent 3255ab1 commit f246704
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 37 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@

sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";

nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};

nixConfig = rec {
Expand Down
79 changes: 42 additions & 37 deletions src/configurations/nixos/hakase/default.nix
Original file line number Diff line number Diff line change
@@ -1,40 +1,45 @@
# Configuration for hakase.
{globals, ...}: let
nixosModules = with globals.outputs; [
# Host-specific modules
./_configuration.nix
./_hardware-configuration.nix
{globals, ...}:
globals.inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit globals;};
modules =
[
./_configuration.nix
./_hardware-configuration.nix

# Host-specific profiles
commonProfiles.nix
commonProfiles.packages
nixosProfiles.desktop
nixosProfiles.nvidia-gpu
nixosProfiles.sops
nixosProfiles.vscode-server
nixosProfiles.nas

# Home-manager module
globals.inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit globals;};
users.yousiki = {
imports = with homeProfiles; [
base
lang.complete
shell
ssh
];
globals.inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit globals;};
users.yousiki = {
imports = with globals.outputs.homeProfiles; [
base
lang.complete
shell
ssh
];
};
};
};
}
];
in
globals.inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit globals;};
modules = nixosModules;
}
}
]
++ (with globals.inputs.nixos-hardware.nixosModules; [
common-cpu-intel-cpu-only
common-gpu-nvidia-nonprime
common-pc-hdd
common-pc-ssd
])
++ (with globals.outputs.commonProfiles; [
nix
packages
])
++ (with globals.outputs.nixosProfiles; [
desktop
nas
nvidia-gpu
sops
vscode-server
]);
}

0 comments on commit f246704

Please sign in to comment.