preserving hardware-configuration

This commit is contained in:
Till 2026-01-23 01:31:43 +01:00
parent 8d34db82c8
commit 120d26b0e4
13 changed files with 181 additions and 207 deletions

View file

@ -1,19 +1,6 @@
{ config, pkgs, inputs, lib, ... }:
{
home.username = "alt";
home.homeDirectory = "/home/alt";
home.stateVersion = "22.11";
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
programs.home-manager.enable = true;
xdg.userDirs = {
enable = true;
createDirectories = true;
@ -25,10 +12,6 @@
templates = "${config.xdg.dataHome}/templates";
};
home.file.".npmrc".text = ''
prefix = ${config.xdg.dataHome}/npm/packages
'';
home.packages = with pkgs; [
fzf
silver-searcher
@ -37,7 +20,6 @@
wl-clipboard
qbittorrent
vlc
# mullvad-vpn
ffmpeg
libnotify
];
@ -50,6 +32,7 @@
./vifm
./tmux
./nvim
./minimal.nix
];
programs.nix-index = {

View file

@ -1,15 +1,13 @@
{ config, pkgs, lib, ... }:
{ pkgs, ... }:
{
imports = [
./khard-dump.nix
./tasks.nix
];
home.packages = with pkgs; [
castget
drawing
feh
ghostscript
ghostscript
hunspell
hunspellDicts.de_DE
@ -19,7 +17,6 @@
hyphenDicts.de_DE
hyphenDicts.en_US
imagemagick
imagemagick
khal
khard
msmtp
@ -28,21 +25,7 @@
pandoc
pdftk
ripmime
taskopen
urlscan
w3m
zathura
];
programs.neovim.plugins = with pkgs.vimPlugins; [ lazy-nvim ];
xdg.configFile."nvim/lua/woof-vim.lua".text = ''
return {
"woof-vim",
name = "woof-vim",
dev = {
path = "~/devel"
}
}
'';
}

22
home/cli-office/tasks.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, pkgs, lib, ... }:
{
home.packages = with pkgs; [
taskopen
];
programs.taskwarrior = {
enable = true;
package = pkgs.taskwarrior3;
dataLocation = "${config.xdg.dataHome}/taskwarrior/tasks";
colorTheme = "light-256";
config = {
report.list.columns = ["id" "depends.indicator" "priority" "project" "recur.indicator" "scheduled.countdown" "due" "until.age" "status.short" "description.count" "tags"];
report.list.labels= ["ID" "D" "Prio" "Proj" "R" "Scheduled" "Due" "Until" "S" "Description" "Tags"];
};
extraConfig = "
hooks.location=${config.xdg.dataHome}/taskwarrior/hooks
verbose=affected,context,edit,label,header,new-id,project,special,sync,recur
";
};
}

View file

@ -1,15 +1,17 @@
{ config, pkgs, inputs, lib, ... }:
{ pkgs, ... }:
{
home.username = "till";
home.homeDirectory = "/home/till";
imports = [
./slim-desktop.nix
./gnome
./firefox.nix
./librewolf.nix
./tex.nix
./fonts.nix
./gnome
./r.nix
./tex.nix
];
home.packages = with pkgs; [
@ -53,5 +55,4 @@
];
programs.obs-studio.enable = true;
}

View file

@ -1,6 +1,10 @@
{ config, pkgs, inputs, lib, ... }:
{
home.file.".npmrc".text = ''
prefix = ${config.xdg.dataHome}/npm/packages
'';
home.packages = with pkgs; [
bundler
bundix

View file

@ -228,6 +228,17 @@
passwordCommand = "pass other/ksh_systemli";
};
programs.neovim.plugins = with pkgs.vimPlugins; [ lazy-nvim ];
xdg.configFile."nvim/lua/woof-vim.lua".text = ''
return {
"woof-vim",
name = "woof-vim",
dev = {
path = "~/devel"
}
}
'';
};
};
}

View file

@ -1,32 +1,8 @@
{ config, pkgs, inputs, lib, ... }:
{
home.username = "till";
home.homeDirectory = "/home/till";
home.stateVersion = "22.11";
# nixpkgs = {
# config = {
# allowUnfree = true;
# allowUnfreePredicate = (_: true);
# };
# };
programs.home-manager.enable = true;
xdg.userDirs = {
enable = true;
desktop = "${config.home.homeDirectory}/desktop";
documents = "${config.home.homeDirectory}/misc";
download = "${config.home.homeDirectory}/tmp";
music = "${config.home.homeDirectory}/media/music";
pictures = "${config.home.homeDirectory}/media/img";
publicShare = "${config.home.homeDirectory}/box";
templates = "${config.xdg.dataHome}/templates";
videos = "${config.home.homeDirectory}/media/vid";
};
home.packages = with pkgs; [
dust
fzf
@ -75,4 +51,5 @@
settings.styles.theme = "default-light";
};
home.stateVersion = "22.11";
}

View file

@ -1,13 +1,8 @@
{ config, pkgs, inputs, lib, ... }:
{ ... }:
{
home.file.".npmrc".text = ''
prefix = ${config.xdg.dataHome}/npm/packages
'';
imports = [
./minimal.nix
./devel.nix
];
}

View file

@ -1,53 +1,45 @@
{ config, pkgs, inputs, lib, ... }:
{
xdg.userDirs.createDirectories = true;
imports = [
./minimal.nix
home.file.".npmrc".text = ''
prefix = ${config.xdg.dataHome}/npm/packages
'';
xdg.configFile."castget/castget.conf".source = ./castget/castget.conf;
./calendars.nix
./cli-office
./devel.nix
./firefox.nix
./foot.nix
./mail
];
home.packages = with pkgs; [
aichat
appimage-run
drawing
feh
keepassxc
usbutils
vlc
wl-clipboard
yubioath-flutter
zathura
];
imports = [
./minimal.nix
./devel.nix
./calendars.nix
./foot.nix
./mail
./cli-office
];
programs.taskwarrior = {
xdg.userDirs = {
enable = true;
package = pkgs.taskwarrior3;
dataLocation = "${config.xdg.dataHome}/taskwarrior/tasks";
colorTheme = "light-256";
config = {
report.list.columns = ["id" "depends.indicator" "priority" "project" "recur.indicator" "scheduled.countdown" "due" "until.age" "status.short" "description.count" "tags"];
report.list.labels= ["ID" "D" "Prio" "Proj" "R" "Scheduled" "Due" "Until" "S" "Description" "Tags"];
};
extraConfig = "
hooks.location=${config.xdg.dataHome}/taskwarrior/hooks
verbose=affected,context,edit,label,header,new-id,project,special,sync,recur
";
createDirectories = true;
desktop = "${config.home.homeDirectory}/desktop";
documents = "${config.home.homeDirectory}/misc";
download = "${config.home.homeDirectory}/tmp";
music = "${config.home.homeDirectory}/media/music";
pictures = "${config.home.homeDirectory}/media/img";
publicShare = "${config.home.homeDirectory}/box";
templates = "${config.xdg.dataHome}/templates";
videos = "${config.home.homeDirectory}/media/vid";
};
xdg.configFile."castget/castget.conf".source = ./castget/castget.conf;
services.syncthing.enable = true;
}