test import dir
This commit is contained in:
parent
2be184a535
commit
817e85b1be
3 changed files with 39 additions and 1 deletions
18
flake.nix
18
flake.nix
|
|
@ -11,6 +11,13 @@
|
|||
url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-homebrew = {
|
||||
url = "github:zhaofengli/nix-homebrew";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -19,11 +26,19 @@
|
|||
url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nix-darwin, ... } @ inputs:
|
||||
outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs:
|
||||
let
|
||||
blades = import ./hosts/servers/blades/systems.nix { inherit inputs; };
|
||||
homeConf = home-manager.darwinModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
# Pass the home.nix configuration to your specific user profile
|
||||
home-manager.users."nyxerinys" = import ./modules/home/nyxerinys;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
|
|
@ -60,6 +75,7 @@
|
|||
modules = [
|
||||
# ./hosts/base.nix
|
||||
./hosts/artemis
|
||||
homeConf
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vscodium
|
||||
git
|
||||
];
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
ids.gids.nixbld = 350;
|
||||
|
|
|
|||
21
modules/home/nyxerinys/default.nix
Normal file
21
modules/home/nyxerinys/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "nyxerinys";
|
||||
home.homeDirectory = "/home/nyxerinys";
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue