1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: begin writing user config

This commit is contained in:
oddlama 2022-12-14 01:41:03 +01:00
parent abe369ba0a
commit 4b4268b537
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
14 changed files with 209 additions and 94 deletions

32
users/myuser/default.nix Normal file
View file

@ -0,0 +1,32 @@
{ config, lib, pkgs, ... }:
with lib;
{
users.groups.myuser.gid = config.users.users.myuser.uid;
users.users.myuser = {
uid = 1000;
createHome = true;
group = "myuser";
extraGroups = [ "wheel" "input" "video" ]
++ optionals config.sound.enable [ "audio" ];
isNormalUser = true;
shell = pkgs.zsh;
};
home-manager.users.myuser = {
imports = [
#impermanence.home-manager.impermanence
./core
./dev
#]
#++ optionals config.programs.sway.enable [
# ./graphical
# ./graphical/sway
#] ++ optionals config.services.xserver.windowManager.i3.enable [
# ./graphical
# ./graphical/i3
];
home.username = config.users.users.myuser.name;
home.uid = config.users.users.myuser.uid;
};
}