fix anon user config and add raphi to wireguard

This commit is contained in:
Kopatz
2023-12-12 23:17:57 +01:00
parent afc25be633
commit 4bb82ad340
4 changed files with 53 additions and 35 deletions

View File

@@ -1,32 +1,21 @@
{ pkgs, inputs, vars, ... }:
let
user = "anon";
in
{ inputs
, pkgs
, lib
, config
, ...
}:
{
imports = [
(import ../home-manager/nvim.nix ({ user="${user}"; pkgs = pkgs; }))
(import ../home-manager/direnv.nix ({ user="${user}"; pkgs = pkgs; }))
(import ../home-manager/zsh.nix ({ user="${user}"; pkgs = pkgs; }))
];
mainUser.name = user;
imports = [ ../default.nix ];
mainUser.name = "anon";
home-manager = {
useGlobalPkgs = true;
extraSpecialArgs = {
inherit inputs;
headless = false;
};
useUserPackages = true;
users.${user} = {
programs.git.enable = true;
home.stateVersion = "23.05";
};
users.${config.mainUser.name} = import ./home.nix;
};
programs.zsh.enable = true;
users.users.${user} = {
users.users.${config.mainUser.name} = {
isNormalUser = true;
description = user;
description = config.mainUser.name;
shell = pkgs.zsh;
extraGroups = [ "networkmanager" "wheel" "docker" "wireshark"];
packages = with pkgs; [

31
users/anon/home.nix Normal file
View File

@@ -0,0 +1,31 @@
{ config, pkgs, inputs, ...}:
{
home = {
# 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.
stateVersion = "23.05";
};
programs.kitty = {
enable = true;
settings = {
foreground = "#${config.colorScheme.colors.base05}";
background = "#${config.colorScheme.colors.base00}";
# ...
};
};
imports = [
../../home-manager/nvim.nix
../../home-manager/zsh.nix
../../home-manager/direnv.nix
inputs.nix-colors.homeManagerModule
];
colorScheme = inputs.nix-colors.colorSchemes.tokyo-night-dark;
}