mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Refactor: ..., also: Added vim-lastplace and tmate
This commit is contained in:
parent
386fe7a2c0
commit
46169bc8c2
103 changed files with 142 additions and 167 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
[submodule "config/private"]
|
[submodule "trusted"]
|
||||||
path = private
|
path = trusted
|
||||||
url = "gcrypt::ssh://gitea@git.kittywit.ch:62954/kat/nixfiles-private.git#main"
|
|
||||||
branch = main
|
branch = main
|
||||||
|
url = "https://git.kittywit.ch/kat/nixfiles-trusted.git"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ rec {
|
||||||
|
|
||||||
profiles = modList {
|
profiles = modList {
|
||||||
modulesDir = ./profiles;
|
modulesDir = ./profiles;
|
||||||
defaultFile = "nixos.nix";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
users = modList { modulesDir = ./users; };
|
users = modList { modulesDir = ./users; };
|
||||||
|
|
|
||||||
8
home.nix
8
home.nix
|
|
@ -1,8 +0,0 @@
|
||||||
{ pkgs, config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./modules/home ]
|
|
||||||
++ lib.optional (builtins.pathExists (./private/profile/home))
|
|
||||||
(import ./private/profile/home);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -9,17 +9,14 @@
|
||||||
left = {
|
left = {
|
||||||
res = "1920x1080";
|
res = "1920x1080";
|
||||||
pos = "0 0";
|
pos = "0 0";
|
||||||
#bg = "${../../../private/files/wallpapers/left.jpg} fill";
|
|
||||||
};
|
};
|
||||||
middle = {
|
middle = {
|
||||||
res = "1920x1200";
|
res = "1920x1200";
|
||||||
pos = "1920 0";
|
pos = "1920 0";
|
||||||
#bg = "${../../../private/files/wallpapers/main.png} fill";
|
|
||||||
};
|
};
|
||||||
right = {
|
right = {
|
||||||
res = "1920x1080";
|
res = "1920x1080";
|
||||||
pos = "3840 0";
|
pos = "3840 0";
|
||||||
#bg = "${../../../private/files/wallpapers/right.jpg} fill";
|
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
"DP-1" = left;
|
"DP-1" = left;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
laptop = {
|
laptop = {
|
||||||
res = "1920x1080";
|
res = "1920x1080";
|
||||||
pos = "0 0";
|
pos = "0 0";
|
||||||
#bg = "${../../../private/files/wallpapers/main.png} fill";
|
|
||||||
};
|
};
|
||||||
in { "eDP-1" = laptop; };
|
in { "eDP-1" = laptop; };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,13 +13,14 @@ let
|
||||||
|
|
||||||
tf = { targetName, target }:
|
tf = { targetName, target }:
|
||||||
tfEval ({ config, ... }: {
|
tfEval ({ config, ... }: {
|
||||||
imports = map (hostName: ../hosts + "/${hostName}/meta.nix") target ++ [{
|
imports = optional (builtins.pathExists ../trusted/tf) (import ../trusted/tf/meta.nix)
|
||||||
|
++ map (hostName: ../hosts + "/${hostName}/meta.nix") target ++ [{
|
||||||
config = mkMerge (map (hostName:
|
config = mkMerge (map (hostName:
|
||||||
mapAttrs (_: mkMerge) hosts.${hostName}.config.deploy.tf.out.set)
|
mapAttrs (_: mkMerge) hosts.${hostName}.config.deploy.tf.out.set)
|
||||||
target);
|
target);
|
||||||
}] ++ optional
|
}] ++ optional
|
||||||
(builtins.pathExists (../private/targets + "/${targetName}"))
|
(builtins.pathExists (../trusted/targets + "/${targetName}"))
|
||||||
(../private/targets + "/${targetName}")
|
(../trusted/targets + "/${targetName}")
|
||||||
++ optional (builtins.pathExists (../targets + "/${targetName}"))
|
++ optional (builtins.pathExists (../targets + "/${targetName}"))
|
||||||
(../targets + "/${targetName}") ++ concatMap (hostName:
|
(../targets + "/${targetName}") ++ concatMap (hostName:
|
||||||
filter builtins.pathExists
|
filter builtins.pathExists
|
||||||
|
|
@ -32,10 +33,6 @@ let
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
state = {
|
|
||||||
file = ../private/files/tf + "/terraform-${targetName}.tfstate";
|
|
||||||
};
|
|
||||||
|
|
||||||
runners.lazy = {
|
runners.lazy = {
|
||||||
file = ../.;
|
file = ../.;
|
||||||
args = [ "--show-trace" ];
|
args = [ "--show-trace" ];
|
||||||
|
|
@ -44,11 +41,6 @@ let
|
||||||
in "deploy.${attr}.runners.run.";
|
in "deploy.${attr}.runners.run.";
|
||||||
};
|
};
|
||||||
|
|
||||||
terraform = {
|
|
||||||
dataDir = ../private/files/tf + "/tfdata/${targetName}";
|
|
||||||
logPath = ../private/files/tf + "/terraform-${targetName}.log";
|
|
||||||
};
|
|
||||||
|
|
||||||
variables.hcloud_token = {
|
variables.hcloud_token = {
|
||||||
type = "string";
|
type = "string";
|
||||||
value.shellCommand = "bitw get infra/hcloud_token";
|
value.shellCommand = "bitw get infra/hcloud_token";
|
||||||
|
|
@ -76,6 +68,10 @@ let
|
||||||
key_algorithm = "hmac-sha512";
|
key_algorithm = "hmac-sha512";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_module.args = {
|
||||||
|
inherit targetName;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
inherit tf;
|
inherit tf;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
disabledModules = [ "programs/vim.nix" ];
|
disabledModules = [ "programs/vim.nix" ];
|
||||||
imports = [
|
imports = [
|
||||||
./vim.nix
|
./vim.nix
|
||||||
|
./deploy-tf
|
||||||
(sources.tf-nix + "/modules/home/secrets.nix")
|
(sources.tf-nix + "/modules/home/secrets.nix")
|
||||||
(import (sources.arc-nixexprs + "/modules")).home-manager.base16
|
(import (sources.arc-nixexprs + "/modules")).home-manager.base16
|
||||||
(import (sources.arc-nixexprs + "/modules")).home-manager.syncplay
|
(import (sources.arc-nixexprs + "/modules")).home-manager.syncplay
|
||||||
|
|
|
||||||
33
modules/home/deploy-tf/default.nix
Normal file
33
modules/home/deploy-tf/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.deploy.tf;
|
||||||
|
unmergedValues = types.mkOptionType {
|
||||||
|
name = "unmergedValues";
|
||||||
|
merge = loc: defs: map (def: def.value) defs;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
|
||||||
|
options.deploy.tf = mkOption {
|
||||||
|
type = types.submodule {
|
||||||
|
freeformType = types.attrsOf unmergedValues;
|
||||||
|
|
||||||
|
options = {
|
||||||
|
attrs = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [ ];
|
||||||
|
};
|
||||||
|
out.set = mkOption { type = types.unspecified; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
deploy.tf = {
|
||||||
|
attrs = [ "out" "attrs" ];
|
||||||
|
out.set = removeAttrs cfg cfg.attrs;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -27,37 +27,40 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
deploy.tf = {
|
deploy.tf = mkMerge (singleton {
|
||||||
attrs = [ "out" "attrs" ];
|
attrs = [ "out" "attrs" ];
|
||||||
out.set = removeAttrs cfg cfg.attrs;
|
out.set = removeAttrs cfg cfg.attrs;
|
||||||
};
|
deploy.systems.${config.networking.hostName} =
|
||||||
|
with tf.resources; {
|
||||||
|
isRemote =
|
||||||
|
(config.networking.hostName != builtins.getEnv "HOME_HOSTNAME");
|
||||||
|
nixosConfig = config;
|
||||||
|
connection = tf.resources.${config.networking.hostName}.connection.set;
|
||||||
|
triggers.copy.${config.networking.hostName} =
|
||||||
|
tf.resources.${config.networking.hostName}.refAttr "id";
|
||||||
|
triggers.secrets.${config.networking.hostName} =
|
||||||
|
tf.resources.${config.networking.hostName}.refAttr "id";
|
||||||
|
};
|
||||||
|
|
||||||
deploy.tf.deploy.systems.${config.networking.hostName} =
|
dns.records."kittywitch_net_${config.networking.hostName}" =
|
||||||
with tf.resources; {
|
mkIf (config.hexchen.network.enable) {
|
||||||
isRemote =
|
tld = "kittywit.ch.";
|
||||||
(config.networking.hostName != builtins.getEnv "HOME_HOSTNAME");
|
domain = "${config.networking.hostName}.net";
|
||||||
nixosConfig = config;
|
aaaa.address = config.hexchen.network.address;
|
||||||
connection = tf.resources.${config.networking.hostName}.connection.set;
|
};
|
||||||
triggers.copy.${config.networking.hostName} =
|
|
||||||
tf.resources.${config.networking.hostName}.refAttr "id";
|
|
||||||
triggers.secrets.${config.networking.hostName} =
|
|
||||||
tf.resources.${config.networking.hostName}.refAttr "id";
|
|
||||||
};
|
|
||||||
|
|
||||||
deploy.tf.dns.records."kittywitch_net_${config.networking.hostName}" =
|
} ++ mapAttrsToList (_: user:
|
||||||
mkIf (config.hexchen.network.enable) {
|
mapAttrs (_: mkMerge) user.deploy.tf.out.set)
|
||||||
tld = "kittywit.ch.";
|
config.home-manager.users);
|
||||||
domain = "${config.networking.hostName}.net";
|
|
||||||
aaaa.address = config.hexchen.network.address;
|
security.acme.certs."${config.networking.hostName}.net.kittywit.ch" =
|
||||||
};
|
mkIf (config.services.nginx.enable && config.hexchen.network.enable) {
|
||||||
|
domain = "${config.networking.hostName}.net.kittywit.ch";
|
||||||
|
dnsProvider = "rfc2136";
|
||||||
|
credentialsFile = config.secrets.files.dns_creds.path;
|
||||||
|
group = "nginx";
|
||||||
|
};
|
||||||
|
|
||||||
security.acme.certs."${config.networking.hostName}.net.kittywit.ch" =
|
|
||||||
mkIf (config.services.nginx.enable && config.hexchen.network.enable) {
|
|
||||||
domain = "${config.networking.hostName}.net.kittywit.ch";
|
|
||||||
dnsProvider = "rfc2136";
|
|
||||||
credentialsFile = config.secrets.files.dns_creds.path;
|
|
||||||
group = "nginx";
|
|
||||||
};
|
|
||||||
_module.args.tf = target.${config.deploy.target};
|
_module.args.tf = target.${config.deploy.target};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
26
nixos.nix
26
nixos.nix
|
|
@ -1,14 +1,15 @@
|
||||||
{ pkgs, config, lib, sources, tf, witch, options, hostName, ... }:
|
{ pkgs, config, lib, sources, tf, witch, options, profiles, hostName, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ (import (./hosts + "/${hostName}/nixos")) ./profiles/common/nixos.nix ]
|
[ (import (./hosts + "/${hostName}/nixos")) profiles.common ]
|
||||||
++ lib.optional
|
# trusted check
|
||||||
(builtins.pathExists (./private/hosts + "/${hostName}/nixos"))
|
++ lib.optional (builtins.pathExists (./trusted/hosts + "/${hostName}/nixos")) (import (./trusted/hosts + "/${hostName}/nixos"))
|
||||||
(import (./private/hosts + "/${hostName}/nixos"))
|
# trusted default check
|
||||||
++ lib.optional (builtins.pathExists ./private/profile)
|
++ lib.optional (builtins.pathExists ./trusted) (import ./trusted/hosts)
|
||||||
./private/profile/nixos;
|
# trusted profile check
|
||||||
|
++ lib.optional (builtins.pathExists ./trusted/profile) (import ./trusted/profile);
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
deploy.profile.gui = lib.mkEnableOption "graphical system";
|
deploy.profile.gui = lib.mkEnableOption "graphical system";
|
||||||
|
|
@ -35,11 +36,12 @@
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
kat = {
|
kat = {
|
||||||
imports = [ ./home.nix ] ++ lib.optional
|
imports = [ ./modules/home ]
|
||||||
(builtins.pathExists (./hosts + "/${hostName}/home"))
|
++ lib.optional (builtins.pathExists (./hosts + "/${hostName}/home")) (import (./hosts + "/${hostName}/home"))
|
||||||
(import (./hosts + "/${hostName}/home")) ++ lib.optional
|
# trusted hosts check
|
||||||
(builtins.pathExists (./private/hosts + "/${hostName}/home"))
|
++ lib.optional (builtins.pathExists (./trusted/hosts + "/${hostName}/home")) (import (./trusted/hosts + "/${hostName}/home"))
|
||||||
(import (./private/hosts + "/${hostName}/home"));
|
# trusted users check
|
||||||
|
++ lib.optional (builtins.pathExists ./trusted/users) (import ./trusted/users);
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
deploy.profile.gui = lib.mkEnableOption "graphical system";
|
deploy.profile.gui = lib.mkEnableOption "graphical system";
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
obs-studio = super.obs-studio.override { pipewireSupport = true; };
|
obs-studio = super.obs-studio.override { pipewireSupport = true; };
|
||||||
|
|
||||||
hextorgba =
|
hextorgba =
|
||||||
(import ../lib/colorhelpers.nix { inherit (super) lib; }).hextorgba;
|
(import ../lib/colorhelpers.nix { inherit (super) lib; }).hextorgba;
|
||||||
|
|
@ -70,7 +70,7 @@ let
|
||||||
|
|
||||||
kat-scrot = self.callPackage ./kat-scrot { };
|
kat-scrot = self.callPackage ./kat-scrot { };
|
||||||
|
|
||||||
} // super.lib.optionalAttrs (builtins.pathExists ../private/pkgs)
|
} // super.lib.optionalAttrs (builtins.pathExists ../trusted/pkgs)
|
||||||
(import ../private/pkgs { inherit super self; });
|
(import ../trusted/pkgs { inherit super self; });
|
||||||
|
|
||||||
in (pkgs.extend (import (sources.arc-nixexprs + "/overlay.nix"))).extend overlay
|
in (pkgs.extend (import (sources.arc-nixexprs + "/overlay.nix"))).extend overlay
|
||||||
|
|
|
||||||
1
private
1
private
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit efaf2cc6461d43ace6b7f2d7e30e0e6c4de1e5c4
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./nixos ];
|
|
||||||
}
|
|
||||||
|
|
@ -16,4 +16,6 @@
|
||||||
|
|
||||||
hardware.opengl.extraPackages = with pkgs; [ libvdpau-va-gl ];
|
hardware.opengl.extraPackages = with pkgs; [ libvdpau-va-gl ];
|
||||||
services.tumbler.enable = true;
|
services.tumbler.enable = true;
|
||||||
|
|
||||||
|
deploy.profile.gui = true;
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./nixos ];
|
|
||||||
|
|
||||||
deploy.profile.gui = true;
|
|
||||||
}
|
|
||||||
|
|
@ -2,4 +2,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./light.nix ];
|
imports = [ ./light.nix ];
|
||||||
|
|
||||||
|
deploy.profile.laptop = true;
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./nixos ];
|
|
||||||
|
|
||||||
deploy.profile.laptop = true;
|
|
||||||
}
|
|
||||||
|
|
@ -2,4 +2,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./sway.nix ];
|
imports = [ ./sway.nix ];
|
||||||
|
|
||||||
|
deploy.profile.sway = true;
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./nixos ];
|
|
||||||
|
|
||||||
deploy.profile.sway = true;
|
|
||||||
}
|
|
||||||
|
|
@ -15,8 +15,8 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
{
|
{
|
||||||
job_name = "boline";
|
job_name = "boline";
|
||||||
static_configs = [{ targets = [ "boline.net.kittywit.ch:8002" ]; }];
|
static_configs = [{ targets = [ "boline.net.kittywit.ch:8002" ]; }];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "samhain-vm";
|
job_name = "samhain-vm";
|
||||||
|
|
|
||||||
1
trusted
Submodule
1
trusted
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e943429855fe24e3b787f26a1f5c528a66ff02be
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager.users.kat = { imports = [ ../home/base ]; };
|
home-manager.users.kat = { imports = [ ./base ]; };
|
||||||
|
|
||||||
users.users.kat = {
|
users.users.kat = {
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
tmate
|
||||||
htop
|
htop
|
||||||
fd
|
fd
|
||||||
sd
|
sd
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
vim-startify
|
vim-startify
|
||||||
vim-airline
|
vim-airline
|
||||||
vim-airline-themes
|
vim-airline-themes
|
||||||
|
vim-lastplace
|
||||||
base16-vim
|
base16-vim
|
||||||
];
|
];
|
||||||
#extraPackages = with pkgs;
|
#extraPackages = with pkgs;
|
||||||
|
|
@ -22,6 +22,9 @@
|
||||||
let g:notmuch_search_date_format='%Y/%m/%d %H:%M'
|
let g:notmuch_search_date_format='%Y/%m/%d %H:%M'
|
||||||
let g:notmuch_html_converter='${pkgs.elinks}/bin/elinks --dump'
|
let g:notmuch_html_converter='${pkgs.elinks}/bin/elinks --dump'
|
||||||
|
|
||||||
|
" lastplace
|
||||||
|
let g:lastplace_ignore = "gitcommit,gitrebase,svn,hgcommit"
|
||||||
|
|
||||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
|
||||||
\ quit | endif
|
\ quit | endif
|
||||||
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
|
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
|
||||||
|
|
@ -52,18 +55,6 @@
|
||||||
set relativenumber
|
set relativenumber
|
||||||
set completeopt=longest,menuone
|
set completeopt=longest,menuone
|
||||||
|
|
||||||
function! ResCur()
|
|
||||||
if line("'\"") <= line("$")
|
|
||||||
normal! g`"
|
|
||||||
return 1
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
augroup resCur
|
|
||||||
autocmd!
|
|
||||||
autocmd BufWinEnter * call ResCur()
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
inoremap <silent><expr> <TAB>
|
inoremap <silent><expr> <TAB>
|
||||||
\ pumvisible() ? "\<C-n>" :
|
\ pumvisible() ? "\<C-n>" :
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
\ <SID>check_back_space() ? "\<TAB>" :
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
rec {
|
rec {
|
||||||
base = ./nixos/base.nix;
|
base = ./base.nix;
|
||||||
gui = ./nixos/gui.nix;
|
gui = ./gui.nix;
|
||||||
sway = ./nixos/sway.nix;
|
sway = ./sway.nix;
|
||||||
dev = ./nixos/dev.nix;
|
dev = ./dev.nix;
|
||||||
media = ./nixos/media.nix;
|
media = ./media.nix;
|
||||||
personal = ./nixos/personal.nix;
|
personal = ./personal.nix;
|
||||||
|
|
||||||
server = { imports = [ personal ]; };
|
server = { imports = [ personal ]; };
|
||||||
guiFull = { imports = [ gui sway dev media personal ]; };
|
guiFull = { imports = [ gui sway dev media personal ]; };
|
||||||
|
|
|
||||||
5
users/kat/dev.nix
Normal file
5
users/kat/dev.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager.users.kat = { imports = [ ./dev ]; };
|
||||||
|
}
|
||||||
5
users/kat/gui.nix
Normal file
5
users/kat/gui.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager.users.kat = { imports = [ ./gui ]; };
|
||||||
|
}
|
||||||
|
|
@ -1,11 +1,6 @@
|
||||||
{ config, pkgs, lib, superConfig, ... }:
|
{ config, pkgs, lib, superConfig, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file = {
|
|
||||||
".local/share/weechat/sec.conf" = lib.mkIf config.deploy.profile.private {
|
|
||||||
source = ../../../../private/files/weechat/sec.conf;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.weechat = {
|
programs.weechat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
rec {
|
|
||||||
base = ./base;
|
|
||||||
sway = ./sway;
|
|
||||||
gui = ./gui;
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{ config, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
xdg.configFile."rbw/config.json".text = builtins.toJSON {
|
|
||||||
email = "kat@kittywit.ch";
|
|
||||||
base_url = "https://vault.kittywit.ch";
|
|
||||||
identity_url = null;
|
|
||||||
lock_timeout = 3600;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./secrets.nix ./bitw.nix ./gpg.nix ./packages.nix ];
|
|
||||||
}
|
|
||||||
5
users/kat/media.nix
Normal file
5
users/kat/media.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager.users.kat = { imports = [ ./media ]; };
|
||||||
|
}
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager.users.kat = { imports = [ ../home/dev ]; };
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager.users.kat = { imports = [ ../home/gui ]; };
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager.users.kat = { imports = [ ../home/media ]; };
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager.users.kat = { imports = [ ../home/personal ]; };
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager.users.kat = { imports = [ ../home/sway ]; };
|
|
||||||
}
|
|
||||||
5
users/kat/personal.nix
Normal file
5
users/kat/personal.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager.users.kat = { imports = [ ./personal ]; };
|
||||||
|
}
|
||||||
5
users/kat/personal/default.nix
Normal file
5
users/kat/personal/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./secrets.nix ./gpg.nix ./packages.nix ];
|
||||||
|
}
|
||||||
5
users/kat/sway.nix
Normal file
5
users/kat/sway.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager.users.kat = { imports = [ ./sway ]; };
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 451 KiB After Width: | Height: | Size: 451 KiB |
|
Before Width: | Height: | Size: 5.2 MiB After Width: | Height: | Size: 5.2 MiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue