mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add lidswitch and some modules
This commit is contained in:
parent
4b4268b537
commit
4db499a5d3
12 changed files with 222 additions and 47 deletions
|
@ -1,13 +1,18 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
users.groups.myuser.gid = config.users.users.myuser.uid;
|
||||
users.users.myuser = {
|
||||
uid = 1000;
|
||||
uid = 1000;
|
||||
createHome = true;
|
||||
group = "myuser";
|
||||
extraGroups = [ "wheel" "input" "video" ]
|
||||
++ optionals config.sound.enable [ "audio" ];
|
||||
extraGroups =
|
||||
["wheel" "input" "video"]
|
||||
++ optionals config.sound.enable ["audio"];
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
@ -17,13 +22,13 @@ with lib;
|
|||
#impermanence.home-manager.impermanence
|
||||
./core
|
||||
./dev
|
||||
#]
|
||||
#++ optionals config.programs.sway.enable [
|
||||
# ./graphical
|
||||
# ./graphical/sway
|
||||
#] ++ optionals config.services.xserver.windowManager.i3.enable [
|
||||
# ./graphical
|
||||
# ./graphical/i3
|
||||
#]
|
||||
#++ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue