Simplify variable files, full push for home independence
This commit is contained in:
parent
94ffd00254
commit
36b97c4ab2
13 changed files with 44 additions and 59 deletions
|
@ -8,7 +8,6 @@
|
||||||
./user
|
./user
|
||||||
./variables
|
./variables
|
||||||
./wms
|
./wms
|
||||||
../variables
|
|
||||||
|
|
||||||
# Imports
|
# Imports
|
||||||
nur.modules.homeManager.default
|
nur.modules.homeManager.default
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
username = "${config.sysusers.main}";
|
username = "jimbo";
|
||||||
homeDirectory = "/home/${config.home.username}";
|
homeDirectory = "/home/${config.home.username}";
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
options.displays = lib.mkOption {
|
options.displays = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config.displays = {
|
config.displays = {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
options.look.border = lib.mkOption {
|
options.look.border = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config.look.border = rec {
|
config.look.border = rec {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
options.look.colors = lib.mkOption {
|
options.look.colors = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config.look.colors = {
|
config.look.colors = {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
options.look.fonts = lib.mkOption {
|
options.look.fonts = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config.look.fonts = {
|
config.look.fonts = {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
options.ws = lib.mkOption {
|
options.ws = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config.ws = {
|
config.ws = {
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
options.sysusers = lib.mkOption {
|
||||||
|
type = lib.types.attrs;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
sysusers.main = "jimbo";
|
||||||
|
|
||||||
users.users."${config.sysusers.main}" = {
|
users.users."${config.sysusers.main}" = {
|
||||||
hashedPassword = config.secrets.mainAccPass;
|
hashedPassword = config.secrets.mainAccPass;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
@ -36,4 +43,5 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users."${config.sysusers.main}" = import ../../../../../home;
|
home-manager.users."${config.sysusers.main}" = import ../../../../../home;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
./services
|
./services
|
||||||
./settings
|
./settings
|
||||||
./variables
|
./variables
|
||||||
../variables
|
|
||||||
];
|
];
|
||||||
|
|
||||||
options.system = with lib; {
|
options.system = with lib; {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
options.ips = lib.mkOption {
|
options.ips = lib.mkOption {
|
||||||
type = lib.types.attrs;
|
type = lib.types.attrs;
|
||||||
default = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config.ips = rec {
|
config.ips = rec {
|
||||||
|
|
Binary file not shown.
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [ ./users ];
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
{
|
|
||||||
options.sysusers = lib.mkOption {
|
|
||||||
type = lib.types.attrs;
|
|
||||||
default = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
config.sysusers = {
|
|
||||||
main = "jimbo";
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue