feat: added other user themes

This commit is contained in:
Nick 2025-01-31 01:49:36 -06:00
parent 6cdbfedc93
commit 1635b0c845
40 changed files with 593 additions and 210 deletions

View file

@ -2,6 +2,7 @@
let
inherit (flake.config.people)
user0
user1
user2
;
inherit (flake.config.machines)
@ -11,6 +12,7 @@ let
desktop = devices.desktop.name;
server = devices.server.name;
fallaryn = devices.fallaryn.name;
bartholomew = devices.bartholomew.name;
in
{
security = {
@ -26,6 +28,8 @@ in
user0
else if hostname == server then
user0
else if hostname == bartholomew then
user1
else if hostname == fallaryn then
user2
else

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
services = {
xserver = {
enable = true;
@ -15,8 +16,7 @@
gnome-online-accounts.enable = true;
};
udev.packages = builtins.attrValues {
inherit
(pkgs.gnome)
inherit (pkgs)
gnome-settings-daemon
;
};
@ -27,8 +27,7 @@
# WEBKIT_DISABLE_COMPOSITING_MODE = "1";
};
gnome.excludePackages = builtins.attrValues {
inherit
(pkgs)
inherit (pkgs)
gnome-photos
gnome-tour
epiphany # web browser
@ -38,19 +37,16 @@
totem # video player
yelp # help viewer
gnome-calendar
;
inherit
(pkgs.gnome)
gnome-music
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
gnome-clocks
gnome-weather
gnome-maps
gnome-contacts
gnome-characters
gnome-music
tali # poker game
iagno # go game
hitori # sudoku game
;
};
};

View file

@ -11,6 +11,7 @@ let
desktop = devices.desktop.name;
server = devices.server.name;
fallaryn = devices.fallaryn.name;
bartholomew = devices.bartholomew.name;
userLogic =
if hostname == desktop then
@ -30,23 +31,27 @@ in
keyFile = "/var/lib/sops-nix/key.txt";
generateKey = false;
};
secrets = {
"ssh/private" = {
path = "/home/${userLogic}/.ssh/id_ed25519";
owner = userLogic;
};
"ssh/public" = {
path = "/home/${userLogic}/.ssh/id_ed25519.pub";
owner = userLogic;
};
"ssh/hosts" = {
path = "/home/${userLogic}/.ssh/known_hosts";
owner = userLogic;
};
# "claude-api-key" = {
# path = "/home/${user0}/.config/zed/claude-api-key";
# owner = user0;
# };
};
secrets =
if hostname == bartholomew then
{ }
else
{
"ssh/private" = {
path = "/home/${userLogic}/.ssh/id_ed25519";
owner = userLogic;
};
"ssh/public" = {
path = "/home/${userLogic}/.ssh/id_ed25519.pub";
owner = userLogic;
};
"ssh/hosts" = {
path = "/home/${userLogic}/.ssh/known_hosts";
owner = userLogic;
};
# "claude-api-key" = {
# path = "/home/${user0}/.config/zed/claude-api-key";
# owner = user0;
# };
};
};
}

View file

@ -6,6 +6,7 @@
let
inherit (flake.config.people)
user0
user1
user2
;
inherit (flake.config.people.users.${userLogic})
@ -18,6 +19,7 @@ let
desktop = devices.desktop.name;
server = devices.server.name;
fallaryn = devices.fallaryn.name;
bartholomew = devices.bartholomew.name;
userLogic =
if hostname == desktop then
@ -30,7 +32,13 @@ let
"";
in
{
users.users.${userLogic} = {
openssh.authorizedKeys.keys = sshKeys;
};
users.users =
if hostname == bartholomew then
{ }
else
{
${userLogic} = {
openssh.authorizedKeys.keys = sshKeys;
};
};
}