mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 06:05:37 +00:00
separate groups and himalaya
This commit is contained in:
parent
bbed1ed591
commit
4735cce26f
@ -1,5 +1,8 @@
|
||||
{ pkgs, ... }: {
|
||||
|
||||
# Requires Xorg to work
|
||||
imports = [ ./xorg.nix ];
|
||||
|
||||
services.xserver.windowManager = { i3 = { enable = true; }; };
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
@ -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
28
modules/mail/himalaya.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,28 +1,26 @@
|
||||
# Replace sudo with doas
|
||||
|
||||
{ config, ... }: {
|
||||
{ ... }: {
|
||||
|
||||
config = {
|
||||
security = {
|
||||
security = {
|
||||
|
||||
# Remove sudo
|
||||
sudo.enable = false;
|
||||
# Remove sudo
|
||||
sudo.enable = false;
|
||||
|
||||
# Add doas
|
||||
doas = {
|
||||
enable = true;
|
||||
# Add doas
|
||||
doas = {
|
||||
enable = true;
|
||||
|
||||
# No password required
|
||||
wheelNeedsPassword = false;
|
||||
# No password required
|
||||
wheelNeedsPassword = false;
|
||||
|
||||
# Pass environment variables from user to root
|
||||
# Also requires removing password here
|
||||
extraRules = [{
|
||||
groups = [ "wheel" ];
|
||||
noPass = true;
|
||||
keepEnv = true;
|
||||
}];
|
||||
};
|
||||
# Pass environment variables from user to root
|
||||
# Also requires removing password here
|
||||
extraRules = [{
|
||||
groups = [ "wheel" ];
|
||||
noPass = true;
|
||||
keepEnv = true;
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -9,10 +9,8 @@
|
||||
# Automatically create a password to start
|
||||
initialPassword = "changeme";
|
||||
|
||||
# Enable sudo privileges
|
||||
extraGroups = [
|
||||
"wheel" # Sudo privileges
|
||||
"i2c" # Access to external monitors
|
||||
];
|
||||
|
||||
};
|
||||
|
@ -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";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user