mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: restructured some stuff for user1
This commit is contained in:
parent
8e918f915c
commit
cfdf20a39c
76 changed files with 233 additions and 99 deletions
|
@ -1,4 +1,8 @@
|
|||
{ flake, config, ... }:
|
||||
{
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.people)
|
||||
user0
|
||||
|
@ -11,8 +15,25 @@ let
|
|||
hostname = config.networking.hostName;
|
||||
mars = devices.mars.name;
|
||||
ceres = devices.ceres.name;
|
||||
venus = devices.venus.names;
|
||||
venus = devices.venus.name;
|
||||
charon = devices.charon.name;
|
||||
deimos = devices.deimos.name;
|
||||
|
||||
userLogic =
|
||||
if
|
||||
builtins.elem hostname [
|
||||
mars
|
||||
deimos
|
||||
ceres
|
||||
]
|
||||
then
|
||||
user0
|
||||
else if hostname == charon then
|
||||
user1
|
||||
else if hostname == venus then
|
||||
user2
|
||||
else
|
||||
"";
|
||||
in
|
||||
{
|
||||
security = {
|
||||
|
@ -23,18 +44,7 @@ in
|
|||
keepEnv = true;
|
||||
noPass = true;
|
||||
users = [
|
||||
(
|
||||
if hostname == mars then
|
||||
user0
|
||||
else if hostname == ceres then
|
||||
user0
|
||||
else if hostname == charon then
|
||||
user1
|
||||
else if hostname == venus then
|
||||
user2
|
||||
else
|
||||
""
|
||||
)
|
||||
userLogic
|
||||
];
|
||||
}
|
||||
];
|
||||
|
|
|
@ -17,15 +17,22 @@ let
|
|||
;
|
||||
hostname = config.networking.hostName;
|
||||
mars = devices.mars.name;
|
||||
deimos = devices.deimos.name;
|
||||
ceres = devices.ceres.name;
|
||||
venus = devices.venus.name;
|
||||
charon = devices.charon.name;
|
||||
|
||||
userLogic =
|
||||
if hostname == mars then
|
||||
user0
|
||||
else if hostname == ceres then
|
||||
if
|
||||
builtins.elem hostname [
|
||||
mars
|
||||
deimos
|
||||
ceres
|
||||
]
|
||||
then
|
||||
user0
|
||||
else if hostname == charon then
|
||||
user1
|
||||
else if hostname == venus then
|
||||
user2
|
||||
else
|
||||
|
|
|
@ -34,6 +34,8 @@ in
|
|||
inherit (modules)
|
||||
hypr
|
||||
wayland
|
||||
# plasma
|
||||
# sddm
|
||||
flatpak
|
||||
xserver
|
||||
;
|
||||
|
|
|
@ -7,7 +7,14 @@
|
|||
let
|
||||
inherit (flake.config.people)
|
||||
user0
|
||||
user1
|
||||
user2
|
||||
;
|
||||
inherit (flake.config.machines) devices;
|
||||
venus = devices.venus.name;
|
||||
charon = devices.charon.name;
|
||||
|
||||
host = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
@ -18,7 +25,13 @@ in
|
|||
let
|
||||
default_session = {
|
||||
command = "${lib.meta.getExe config.programs.hyprland.package}";
|
||||
user = user0;
|
||||
user =
|
||||
if host == charon then
|
||||
user1
|
||||
else if host == venus then
|
||||
user2
|
||||
else
|
||||
user0;
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ let
|
|||
in
|
||||
{
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
package = pkgs.greetd.regreet;
|
||||
# settings = {
|
||||
# appearance = {
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
{ flake, config, ... }:
|
||||
{
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.people)
|
||||
user0
|
||||
user1
|
||||
user2
|
||||
;
|
||||
inherit (flake.config.machines)
|
||||
|
@ -12,12 +17,19 @@ let
|
|||
ceres = devices.ceres.name;
|
||||
venus = devices.venus.name;
|
||||
charon = devices.charon.name;
|
||||
deimos = devices.deimos.name;
|
||||
|
||||
userLogic =
|
||||
if hostname == mars then
|
||||
user0
|
||||
else if hostname == ceres then
|
||||
if
|
||||
builtins.elem hostname [
|
||||
mars
|
||||
deimos
|
||||
ceres
|
||||
]
|
||||
then
|
||||
user0
|
||||
else if hostname == charon then
|
||||
user1
|
||||
else if hostname == venus then
|
||||
user2
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue