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, ... }: { { pkgs, ... }: {
# Requires Xorg to work
imports = [ ./xorg.nix ];
services.xserver.windowManager = { i3 = { enable = true; }; }; services.xserver.windowManager = { i3 = { enable = true; }; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { { pkgs, user, ... }: {
# Timezone required for Redshift schedule # Timezone required for Redshift schedule
imports = [ ../system/timezone.nix ]; imports = [ ../system/timezone.nix ];
@ -20,6 +20,9 @@
# Detect monitors (brightness) # Detect monitors (brightness)
hardware.i2c.enable = true; hardware.i2c.enable = true;
# Grant user access to external monitors
users.users.${user}.extraGroups = [ "i2c" ];
services.xserver.displayManager = { services.xserver.displayManager = {
# Put the login screen on the left monitor # 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 # Replace sudo with doas
{ config, ... }: { { ... }: {
config = {
security = { security = {
# Remove sudo # Remove sudo
@ -24,5 +23,4 @@
}]; }];
}; };
}; };
};
} }

View File

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

View File

@ -5,7 +5,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
# neomutt # neomutt
himalaya # Email
qbittorrent qbittorrent
# Encryption # Encryption
@ -19,25 +18,5 @@
NOTES_PATH = "$HOME/dev/personal/notes"; 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";
# };
# };
# };
}; };
} }