separate groups and himalaya

This commit is contained in:
Noah Masur 2022-04-28 22:55:42 -04:00
parent bbed1ed591
commit 4735cce26f
6 changed files with 51 additions and 42 deletions

View File

@ -1,5 +1,8 @@
{ pkgs, ... }: {
# Requires Xorg to work
imports = [ ./xorg.nix ];
services.xserver.windowManager = { i3 = { enable = true; }; };
environment.systemPackages = with pkgs; [

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, user, ... }: {
# Timezone required for Redshift schedule
imports = [ ../system/timezone.nix ];
@ -20,6 +20,9 @@
# Detect monitors (brightness)
hardware.i2c.enable = true;
# Grant user access to external monitors
users.users.${user}.extraGroups = [ "i2c" ];
services.xserver.displayManager = {
# Put the login screen on the left monitor

28
modules/mail/himalaya.nix Normal file
View File

@ -0,0 +1,28 @@
{ pkgs, lib, user, ... }: {
home-manager.users.${user} = {
home.packages = with pkgs; [ himalaya ];
programs.himalaya = {
enable = true;
settings = {
name = "${name}";
downloads-dir = "~/Downloads";
home = {
default = true;
email = "censored";
imap-host = "censored";
imap-port = 993;
imap-login = "censored";
imap-passwd-cmd = "cat ~/.config/himalaya/passwd";
smtp-host = "censored";
smtp-port = 587;
smtp-login = "censored";
smtp-passwd-cmd = "cat ~/.config/himalaya/passwd";
};
};
};
};
}

View File

@ -1,8 +1,7 @@
# Replace sudo with doas
{ config, ... }: {
{ ... }: {
config = {
security = {
# Remove sudo
@ -24,5 +23,4 @@
}];
};
};
};
}

View File

@ -9,10 +9,8 @@
# Automatically create a password to start
initialPassword = "changeme";
# Enable sudo privileges
extraGroups = [
"wheel" # Sudo privileges
"i2c" # Access to external monitors
];
};

View File

@ -5,7 +5,6 @@
home.packages = with pkgs; [
# neomutt
himalaya # Email
qbittorrent
# Encryption
@ -19,25 +18,5 @@
NOTES_PATH = "$HOME/dev/personal/notes";
};
# Email
# programs.himalaya = {
# enable = true;
# settings = {
# name = "${name}";
# downloads-dir = "~/Downloads";
# home = {
# default = true;
# email = "censored";
# imap-host = "censored";
# imap-port = 993;
# imap-login = "censored";
# imap-passwd-cmd = "cat ~/.config/himalaya/passwd";
# smtp-host = "censored";
# smtp-port = 587;
# smtp-login = "censored";
# smtp-passwd-cmd = "cat ~/.config/himalaya/passwd";
# };
# };
# };
};
}