small refactor of own modules
This commit is contained in:
parent
dc4d777962
commit
9bc1722517
16 changed files with 218 additions and 195 deletions
52
hive.nix
52
hive.nix
|
@ -30,46 +30,13 @@ in
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./kat
|
||||||
"${sources.home-manager}/nixos"
|
"${sources.home-manager}/nixos"
|
||||||
"${sources.disko}/module.nix"
|
"${sources.disko}/module.nix"
|
||||||
./domain-proxies-module.nix
|
./domain-proxies-module.nix
|
||||||
./domain-proxies.nix
|
./domain-proxies.nix
|
||||||
];
|
];
|
||||||
options.system.build.anywhere = lib.mkOption {
|
networking.hostName = name;
|
||||||
type = lib.types.package;
|
|
||||||
readOnly = true;
|
|
||||||
};
|
|
||||||
config = {
|
|
||||||
boot.tmp.useTmpfs = true;
|
|
||||||
networking = {
|
|
||||||
nftables.enable = true;
|
|
||||||
hostName = name;
|
|
||||||
};
|
|
||||||
nix = {
|
|
||||||
nixPath = [
|
|
||||||
"nixpkgs=${builtins.storePath pkgs.path}"
|
|
||||||
"nixos=${builtins.storePath pkgs.path}"
|
|
||||||
];
|
|
||||||
channel.enable = false;
|
|
||||||
settings.nix-path = config.nix.nixPath;
|
|
||||||
package = pkgs.lix;
|
|
||||||
};
|
|
||||||
services = {
|
|
||||||
resolved.enable = true;
|
|
||||||
openssh.settings = {
|
|
||||||
ClientAliveInterval = 60;
|
|
||||||
ClientAliveCountMax = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
system.build.anywhere = pkgs.writeShellApplication {
|
|
||||||
name = "anywhere-deploy_${name}.sh";
|
|
||||||
runtimeInputs = [ pkgs.nixos-anywhere ];
|
|
||||||
# --kexec ${nodes.kat-kexec.config.system.build.kexecTarball}/${nodes.kat-kexec.config.system.kexec-installer.name}-${pkgs.stdenv.hostPlatform.system}.tar.gz
|
|
||||||
text = ''
|
|
||||||
nixos-anywhere --store-paths ${config.system.build.diskoScriptNoDeps} ${config.system.build.toplevel} ${config.deployment.targetHost}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
kat-probook =
|
kat-probook =
|
||||||
|
@ -79,7 +46,6 @@ in
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./machines/kat-probook
|
./machines/kat-probook
|
||||||
(users.root { ssh = false; })
|
|
||||||
users.catvayor
|
users.catvayor
|
||||||
];
|
];
|
||||||
nix.settings.trusted-users = [
|
nix.settings.trusted-users = [
|
||||||
|
@ -92,9 +58,9 @@ in
|
||||||
{ users, ... }:
|
{ users, ... }:
|
||||||
{
|
{
|
||||||
deployment.targetHost = "manah.kat";
|
deployment.targetHost = "manah.kat";
|
||||||
|
services.openssh.enable = true;
|
||||||
imports = [
|
imports = [
|
||||||
./machines/kat-manah
|
./machines/kat-manah
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,9 +68,9 @@ in
|
||||||
{ users, ... }:
|
{ users, ... }:
|
||||||
{
|
{
|
||||||
deployment.targetHost = "watcher.kat";
|
deployment.targetHost = "watcher.kat";
|
||||||
|
services.openssh.enable = true;
|
||||||
imports = [
|
imports = [
|
||||||
./machines/kat-watcher
|
./machines/kat-watcher
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -115,12 +81,12 @@ in
|
||||||
targetHost = "virt.kat";
|
targetHost = "virt.kat";
|
||||||
tags = [ "kat-vms" ];
|
tags = [ "kat-vms" ];
|
||||||
};
|
};
|
||||||
|
services.openssh.enable = true;
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
boot.kernelParams = [ "console=ttyS0" ];
|
boot.kernelParams = [ "console=ttyS0" ];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./machines/kat-virt
|
./machines/kat-virt
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
users.users.root.openssh.authorizedKeys.keys = [ id_sylvain ];
|
users.users.root.openssh.authorizedKeys.keys = [ id_sylvain ];
|
||||||
};
|
};
|
||||||
|
@ -132,12 +98,12 @@ in
|
||||||
targetHost = "mail-test.kat";
|
targetHost = "mail-test.kat";
|
||||||
tags = [ "kat-vms" ];
|
tags = [ "kat-vms" ];
|
||||||
};
|
};
|
||||||
|
services.openssh.enable = true;
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
boot.kernelParams = [ "console=ttyS0" ];
|
boot.kernelParams = [ "console=ttyS0" ];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./machines/kat-mail-test
|
./machines/kat-mail-test
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
users.users.root.openssh.authorizedKeys.keys = [ id_sylvain ];
|
users.users.root.openssh.authorizedKeys.keys = [ id_sylvain ];
|
||||||
};
|
};
|
||||||
|
@ -149,11 +115,11 @@ in
|
||||||
targetHost = "son.kat";
|
targetHost = "son.kat";
|
||||||
tags = [ "kat-vms" ];
|
tags = [ "kat-vms" ];
|
||||||
};
|
};
|
||||||
|
services.openssh.enable = true;
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
boot.kernelParams = [ "console=ttyS0" ];
|
boot.kernelParams = [ "console=ttyS0" ];
|
||||||
imports = [
|
imports = [
|
||||||
./machines/kat-son
|
./machines/kat-son
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -164,11 +130,11 @@ in
|
||||||
targetHost = "orchid.kat";
|
targetHost = "orchid.kat";
|
||||||
tags = [ "kat-vms" ];
|
tags = [ "kat-vms" ];
|
||||||
};
|
};
|
||||||
|
services.openssh.enable = true;
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
boot.kernelParams = [ "console=ttyS0" ];
|
boot.kernelParams = [ "console=ttyS0" ];
|
||||||
imports = [
|
imports = [
|
||||||
./machines/kat-orchid
|
./machines/kat-orchid
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -188,7 +154,6 @@ in
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix")
|
(modulesPath + "/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix")
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
@ -225,7 +190,6 @@ in
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
("${sources.nixos-images}/nix/kexec-installer/module.nix")
|
("${sources.nixos-images}/nix/kexec-installer/module.nix")
|
||||||
(users.root { ssh = true; })
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
54
kat/default.nix
Normal file
54
kat/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./users
|
||||||
|
./root.nix
|
||||||
|
];
|
||||||
|
options.kat = {
|
||||||
|
path = mkOption {
|
||||||
|
readOnly = true;
|
||||||
|
type = types.path;
|
||||||
|
};
|
||||||
|
anywhere = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
readOnly = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
kat = {
|
||||||
|
path = ./.;
|
||||||
|
anywhere = pkgs.writeShellApplication {
|
||||||
|
name = "anywhere-deploy_${name}.sh";
|
||||||
|
runtimeInputs = [ pkgs.nixos-anywhere ];
|
||||||
|
# --kexec ${nodes.kat-kexec.config.system.build.kexecTarball}/${nodes.kat-kexec.config.system.kexec-installer.name}-${pkgs.stdenv.hostPlatform.system}.tar.gz
|
||||||
|
text = ''
|
||||||
|
nixos-anywhere --store-paths ${config.system.build.diskoScriptNoDeps} ${config.system.build.toplevel} ${config.deployment.targetHost}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
boot.tmp.useTmpfs = true;
|
||||||
|
networking.nftables.enable = true;
|
||||||
|
nix = {
|
||||||
|
nixPath = [
|
||||||
|
"nixpkgs=${builtins.storePath pkgs.path}"
|
||||||
|
"nixos=${builtins.storePath pkgs.path}"
|
||||||
|
];
|
||||||
|
channel.enable = false;
|
||||||
|
settings.nix-path = config.nix.nixPath;
|
||||||
|
package = pkgs.lix;
|
||||||
|
};
|
||||||
|
services = {
|
||||||
|
resolved.enable = !config.boot.isContainer;
|
||||||
|
openssh.settings = {
|
||||||
|
ClientAliveInterval = 60;
|
||||||
|
ClientAliveCountMax = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
7
kat/root.nix
Normal file
7
kat/root.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
|
||||||
|
];
|
||||||
|
home-manager.users.root = { };
|
||||||
|
}
|
17
kat/users/default.nix
Normal file
17
kat/users/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
zsh = import ./zsh.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ (import ./zsh.nix).system ];
|
||||||
|
home-manager.sharedModules = [{
|
||||||
|
imports = [ zsh.user ./neovim ];
|
||||||
|
# options.kat = {
|
||||||
|
# ssh = mkEnableOption "ssh configuration";
|
||||||
|
# };
|
||||||
|
config = {
|
||||||
|
home.stateVersion = config.system.stateVersion;
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
}
|
38
kat/users/neovim/default.nix
Normal file
38
kat/users/neovim/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.kat.neovim = mkEnableOption "neovim configuration" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
config = mkIf config.kat.neovim {
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
(nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars))
|
||||||
|
nvim-treesitter.withAllGrammars
|
||||||
|
vim-nix
|
||||||
|
|
||||||
|
telescope-nvim
|
||||||
|
todo-comments-nvim
|
||||||
|
|
||||||
|
gitsigns-nvim
|
||||||
|
];
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
gcc
|
||||||
|
];
|
||||||
|
extraConfig = builtins.readFile ./nvimrc;
|
||||||
|
extraLuaConfig = builtins.readFile ./nvim.lua;
|
||||||
|
vimAlias = true;
|
||||||
|
viAlias = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
91
kat/users/zsh.nix
Normal file
91
kat/users/zsh.nix
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
{
|
||||||
|
system =
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
mkMerge [
|
||||||
|
{
|
||||||
|
users.users = mapAttrs (
|
||||||
|
_: val:
|
||||||
|
mkIf val.kat.zsh {
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
}
|
||||||
|
) config.home-manager.users;
|
||||||
|
}
|
||||||
|
(mkIf (any (val: val.kat.zsh) (attrValues config.home-manager.users)) {
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
user =
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.kat.zsh = mkEnableOption "zsh configuration" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
config = mkIf config.kat.zsh {
|
||||||
|
programs = {
|
||||||
|
zsh = {
|
||||||
|
enable = true;
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ "git" ];
|
||||||
|
};
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "zsh-nix-shell";
|
||||||
|
file = "nix-shell.plugin.zsh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "chisui";
|
||||||
|
repo = "zsh-nix-shell";
|
||||||
|
rev = "v0.8.0";
|
||||||
|
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-autosuggestion";
|
||||||
|
file = "zsh-autosuggestions.zsh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "zsh-users";
|
||||||
|
repo = "zsh-autosuggestions";
|
||||||
|
rev = "v0.7.0";
|
||||||
|
sha256 = "1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-syntax-highlighting";
|
||||||
|
file = "zsh-syntax-highlighting.zsh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "zsh-users";
|
||||||
|
repo = "zsh-syntax-highlighting";
|
||||||
|
rev = "0.8.0";
|
||||||
|
sha256 = "1yl8zdip1z9inp280sfa5byjbf2vqh2iazsycar987khjsi5d5w8";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
starship = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings.battery.disabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,18 +10,11 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
users.users.moderators = {
|
users.users.moderators = {
|
||||||
shell = pkgs.zsh;
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "postdrop" ];
|
extraGroups = [ "postdrop" ];
|
||||||
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
|
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
|
||||||
};
|
};
|
||||||
home-manager.users.moderators = {
|
home-manager.users.moderators = { };
|
||||||
home.stateVersion = "23.11";
|
|
||||||
imports = with mods.home; [
|
|
||||||
neovim
|
|
||||||
zsh
|
|
||||||
];
|
|
||||||
};
|
|
||||||
mailserver.loginAccounts."moderators@${host}" = {
|
mailserver.loginAccounts."moderators@${host}" = {
|
||||||
hashedPassword = "";
|
hashedPassword = "";
|
||||||
sieveScript = ''
|
sieveScript = ''
|
||||||
|
|
|
@ -57,8 +57,6 @@
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
nix-search-cli
|
nix-search-cli
|
||||||
|
@ -145,17 +143,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.orchid = {
|
users.users.orchid.isNormalUser = true;
|
||||||
isNormalUser = true;
|
home-manager.users.orchid = { };
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
home-manager.users.orchid = {
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
imports = with mods.home; [
|
|
||||||
neovim
|
|
||||||
zsh
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,6 @@ in
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
sway = sway.home;
|
sway = sway.home;
|
||||||
neovim = ./neovim;
|
|
||||||
zsh = ./zsh.nix;
|
|
||||||
ssh = ./ssh.nix;
|
ssh = ./ssh.nix;
|
||||||
mail = ./mail.nix;
|
mail = ./mail.nix;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
|
||||||
(nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars))
|
|
||||||
nvim-treesitter.withAllGrammars
|
|
||||||
vim-nix
|
|
||||||
|
|
||||||
telescope-nvim
|
|
||||||
todo-comments-nvim
|
|
||||||
|
|
||||||
gitsigns-nvim
|
|
||||||
];
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
git
|
|
||||||
ripgrep
|
|
||||||
fd
|
|
||||||
gcc
|
|
||||||
];
|
|
||||||
extraConfig = builtins.readFile ./nvimrc;
|
|
||||||
extraLuaConfig = builtins.readFile ./nvim.lua;
|
|
||||||
vimAlias = true;
|
|
||||||
viAlias = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,61 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
programs = {
|
|
||||||
zsh = {
|
|
||||||
enable = true;
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [ "git" ];
|
|
||||||
};
|
|
||||||
plugins = [
|
|
||||||
{
|
|
||||||
name = "zsh-nix-shell";
|
|
||||||
file = "nix-shell.plugin.zsh";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "chisui";
|
|
||||||
repo = "zsh-nix-shell";
|
|
||||||
rev = "v0.8.0";
|
|
||||||
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "zsh-autosuggestion";
|
|
||||||
file = "zsh-autosuggestions.zsh";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "zsh-users";
|
|
||||||
repo = "zsh-autosuggestions";
|
|
||||||
rev = "v0.7.0";
|
|
||||||
sha256 = "1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "zsh-syntax-highlighting";
|
|
||||||
file = "zsh-syntax-highlighting.zsh";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "zsh-users";
|
|
||||||
repo = "zsh-syntax-highlighting";
|
|
||||||
rev = "0.8.0";
|
|
||||||
sha256 = "1yl8zdip1z9inp280sfa5byjbf2vqh2iazsycar987khjsi5d5w8";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
settings.battery.disabled = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -8,9 +8,7 @@
|
||||||
{
|
{
|
||||||
imports = with mods.global; [ sway ];
|
imports = with mods.global; [ sway ];
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
users.users.catvayor = {
|
users.users.catvayor = {
|
||||||
shell = pkgs.zsh;
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
|
@ -36,11 +34,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.catvayor = {
|
home-manager.users.catvayor = {
|
||||||
home.stateVersion = "23.11";
|
|
||||||
|
|
||||||
imports = with mods.home; [
|
imports = with mods.home; [
|
||||||
neovim
|
|
||||||
zsh
|
|
||||||
sway
|
sway
|
||||||
ssh
|
ssh
|
||||||
mail
|
mail
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
{
|
{
|
||||||
catvayor = ./catvayor.nix;
|
catvayor = ./catvayor.nix;
|
||||||
root = import ./root.nix;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
{ ssh }:
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
mods,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
users.users.root =
|
|
||||||
{
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
}
|
|
||||||
// lib.attrsets.optionalAttrs ssh {
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
home-manager.users.root = {
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
imports = with mods.home; [
|
|
||||||
neovim
|
|
||||||
zsh
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// lib.attrsets.optionalAttrs ssh { services.openssh.enable = true; }
|
|
Loading…
Add table
Reference in a new issue