move more and more stuff to home manager

This commit is contained in:
Ingolf Wagner 2023-12-13 19:32:02 +01:00
parent f95a985f2a
commit 9ef699df79
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
20 changed files with 41 additions and 112 deletions

View file

@ -8,11 +8,11 @@
./packages ./packages
./ssh.nix ./ssh.nix
./stylix.nix ./stylix.nix
./vim.nix
]; ];
home.stateVersion = "22.11"; home.stateVersion = "22.11";
programs.gpg = { programs.gpg = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: { pkgs, ... }:
with pkgs;
{ {
programs.git = { programs.git = {
@ -18,7 +19,21 @@
home.packages = [ home.packages = [
pkgs.pre-commit pre-commit
gita
tig
lazygit
git-crypt
gitAndTools.gitflow
gitAndTools.gitSVN
gitAndTools.git2cl
# merge tools
meld
# activate using :
# git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
gitAndTools.diff-so-fancy
]; ];
} }

6
nixos/homes/palo/vim.nix Normal file
View file

@ -0,0 +1,6 @@
{
programs.vim = {
enable = true;
defaultEditor = true;
};
}

View file

@ -14,14 +14,10 @@
./tinc.nix ./tinc.nix
./tinc_retiolum.nix ./tinc_retiolum.nix
#./wifi-access-point.nix
#./wireshark.nix
#./scanner.nix
./qemu.nix ./qemu.nix
./wireguard.nix ./wireguard.nix
./borg.nix ./borg.nix
./trilium.nix
]; ];
@ -128,11 +124,6 @@
}; };
}; };
configuration.desktop = {
width = 2256;
height = 1504;
};
#services.xserver.desktopManager.gnome.enable = true; #services.xserver.desktopManager.gnome.enable = true;
#services.xserver.displayManager.lightdm.enable = false; #services.xserver.displayManager.lightdm.enable = false;
#services.xserver.displayManager.sddm.enable = true; #services.xserver.displayManager.sddm.enable = true;

View file

@ -11,8 +11,6 @@
media = "na_letter_8.5x11in"; media = "na_letter_8.5x11in";
sides = "one-sided"; sides = "one-sided";
}; };
} }
]; ];
} }

View file

@ -1,5 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;

View file

@ -1 +0,0 @@

View file

@ -1,19 +0,0 @@
{ config, pkgs, ... }:
{
services.trilium-server = {
enable = true;
instanceName = config.networking.hostName;
host = "10.23.42.27";
nginx = {
enable = true;
hostName = "trilium.${config.networking.hostName}.private";
};
};
services.nginx.virtualHosts."${config.services.trilium-server.nginx.hostName}".extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
}

View file

@ -60,12 +60,6 @@
programs.custom.xterm.fontSize = 12; programs.custom.xterm.fontSize = 12;
# system.custom.fonts.dpi = 100; # system.custom.fonts.dpi = 100;
# x11
# ---
configuration.desktop = {
width = 1366;
height = 768;
};
# for congress and streaming # for congress and streaming
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;

View file

@ -68,11 +68,6 @@
}; };
}; };
configuration.desktop = {
width = 1366;
height = 768;
};
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
custom.samba-share = { custom.samba-share = {

View file

@ -20,16 +20,12 @@
#./programs/elm.nix #./programs/elm.nix
#./programs/espeak.nix #./programs/espeak.nix
#./programs/ffmpeg.nix #./programs/ffmpeg.nix
#./programs/git.nix
#./programs/shell-bash.nix
#./programs/shell-tools.nix
#./programs/shell-zsh.nix
#./programs/slack.nix #./programs/slack.nix
./programs/steam.nix ./programs/steam.nix
#./programs/taskwarrior.nix #./programs/taskwarrior.nix
./programs/urxvt.nix ./programs/urxvt.nix
#./programs/video.nix #./programs/video.nix
./programs/vim.nix #./programs/vim.nix
./programs/xterm.nix ./programs/xterm.nix
#./system/audio.nix #./system/audio.nix

View file

@ -1,36 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.programs.custom.git;
in
{
options.programs.custom.git.enable =
mkEnableOption "install git and all its tools";
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
git
gita
tig
lazygit
git-crypt
gitAndTools.gitflow
gitAndTools.gitSVN
gitAndTools.git2cl
# merge tools
meld
# activate using :
# git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
gitAndTools.diff-so-fancy
];
};
}

View file

@ -3,17 +3,12 @@
imports = [ imports = [
../all ../all
#./icecast.nix
#./audio.nix
#./mail-stuff.nix
./packages.nix ./packages.nix
./size.nix ./size.nix
#./user.nix
./yubikey.nix ./yubikey.nix
]; ];
components.network.sshd.onlyTincAccess = lib.mkDefault true; #components.network.sshd.onlyTincAccess = lib.mkDefault true;
backup.dirs = [ backup.dirs = [
"${config.users.users.mainUser.home}/.config/noti" "${config.users.users.mainUser.home}/.config/noti"
@ -35,7 +30,6 @@
curlScripts.enable = true; curlScripts.enable = true;
citate.enable = true; citate.enable = true;
vim.enable = true;
}; };

View file

@ -9,21 +9,21 @@ let
in in
{ {
options.configuration.desktop = { #options.configuration.desktop = {
height = mkOption { # height = mkOption {
default = 900; # default = 900;
type = with types; int; # type = with types; int;
description = '' # description = ''
height of the dektop monitor # height of the dektop monitor
''; # '';
}; # };
width = mkOption { # width = mkOption {
default = 1600; # default = 1600;
type = with types; int; # type = with types; int;
description = '' # description = ''
width of the desktop monitor # width of the desktop monitor
''; # '';
}; # };
}; #};
} }

View file

@ -14,9 +14,6 @@
powerManagement.enable = false; powerManagement.enable = false;
#powerManagement.scsiLinkPolicy = "min_power"; #powerManagement.scsiLinkPolicy = "min_power";
# config vim
programs.custom.vim.enable = true;
services.locate.enable = true; services.locate.enable = true;
services.locate.locate = pkgs.mlocate; services.locate.locate = pkgs.mlocate;
services.locate.localuser = null; services.locate.localuser = null;