refactor imports

This commit is contained in:
♥ Minnie ♥ 2024-01-21 22:32:25 +08:00
parent 3e16c5a55d
commit 0a4f535117
3 changed files with 9 additions and 4 deletions

View file

@ -1,8 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, inputs, ... }:
let let
hostname = config.networking.hostName; hostname = config.networking.hostName;
in in
{ {
imports = [
inputs.agenix.nixosModules.default
inputs.agenix-rekey.nixosModules.default
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
agenix-rekey agenix-rekey
]; ];

View file

@ -2,9 +2,6 @@
{ {
imports = [ imports = [
inputs.home-manager.nixosModules.home-manager
inputs.agenix.nixosModules.default
inputs.agenix-rekey.nixosModules.default
./age.nix ./age.nix
./env.nix ./env.nix
./nix.nix ./nix.nix

View file

@ -1,6 +1,9 @@
{ inputs, outputs, pkgs, config, ... }: { inputs, outputs, pkgs, config, ... }:
{ {
imports = [
inputs.home-manager.nixosModules.home-manager
];
users.users.sajenim = { users.users.sajenim = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "audio" "docker" "networkmanager" "wheel" ]; extraGroups = [ "audio" "docker" "networkmanager" "wheel" ];