Compare commits

..

17 commits

Author SHA1 Message Date
781088cd1f flake.lock: Update
Some checks failed
/ test (push) Failing after 19m0s
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/c61e50b63ad50dda5797b1593ad7771be496efbb' (2024-09-24)
  → 'github:nix-community/disko/c1c472f4cd91e4b0703e02810a8c7ed30186b6fa' (2024-09-25)
• Updated input 'homeManager':
    'github:nix-community/home-manager/21c021862fa696c8199934e2153214ab57150cb6' (2024-09-23)
  → 'github:nix-community/home-manager/1e22ef1518fb175d762006f9cae7f6312b8caedb' (2024-09-25)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/35dfece10c642eb52928a48bee7ac06a59f93e9a' (2024-09-23)
  → 'github:numtide/treefmt-nix/1bff2ba6ec22bc90e9ad3f7e94cca0d37870afa3' (2024-09-25)
2024-09-25 13:56:12 +00:00
7d3c774e4e
Add padding
Some checks failed
/ test (push) Failing after 40m17s
2024-09-25 14:23:33 +02:00
516f3a3d3e
Add generic utils 2024-09-25 14:23:20 +02:00
db480ac857
Remove unused stuff 2024-09-25 14:23:20 +02:00
6cab6c0bf1
Use VI keybindings in fish shell 2024-09-25 14:23:20 +02:00
ec10309491
Remove unused stuff 2024-09-25 14:23:20 +02:00
df27f03c62
Use lsd instead of exa 2024-09-25 14:23:20 +02:00
f0698e809b
Enable ripgrep 2024-09-25 14:23:20 +02:00
404f022701
Enable fzf 2024-09-25 14:23:20 +02:00
c17fb32a28
Enable ranger 2024-09-25 14:23:20 +02:00
5ec6b664bf
Use default editor in the EDITOR env variable 2024-09-25 14:23:20 +02:00
d97229fa11
Fix waybar startup latency problem 2024-09-25 14:23:20 +02:00
27fdc7a92e
Enable freecad on picard 2024-09-25 14:23:17 +02:00
08b1521824
Use lix on sisko 2024-09-25 14:18:21 +02:00
7159aa535c
Rename immich container 2024-09-25 14:18:06 +02:00
28afd2dc86
cargoHash256 -> cargoHash 2024-09-25 14:16:41 +02:00
59cc5c791e
Remove impermanence locked revision 2024-09-25 14:15:57 +02:00
14 changed files with 68 additions and 199 deletions

31
flake.lock generated
View file

@ -86,11 +86,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1727156717, "lastModified": 1727249977,
"narHash": "sha256-Ef7UgoTdOB4PGQKSkHGu6SOxnTiArPHGcRf8qGFC39o=", "narHash": "sha256-lAqOCDI4B6hA+t+KHSm/Go8hQF/Ob5sgXaIRtMAnMKw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "c61e50b63ad50dda5797b1593ad7771be496efbb", "rev": "c1c472f4cd91e4b0703e02810a8c7ed30186b6fa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -448,11 +448,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1727111745, "lastModified": 1727246346,
"narHash": "sha256-EYLvFRoTPWtD+3uDg2wwQvlz88OrIr3zld+jFE5gDcY=", "narHash": "sha256-TcUaKtya339Asu+g6KTJ8h7KiKcKXKp2V+At+7tksyY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "21c021862fa696c8199934e2153214ab57150cb6", "rev": "1e22ef1518fb175d762006f9cae7f6312b8caedb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -484,11 +484,11 @@
}, },
"impermanence": { "impermanence": {
"locked": { "locked": {
"lastModified": 1727125666, "lastModified": 1727198257,
"narHash": "sha256-hmmctvhlx0mUOm/Dv3tRewSoCX7Y0MaUDNkEsSlq3lY=", "narHash": "sha256-/qMVI+SG9zvhLbQFOnqb4y4BH6DdK3DQHZU5qGptehc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "impermanence", "repo": "impermanence",
"rev": "85fe07276d8b58cff91bfeb332940e9c7b73c135", "rev": "8514fff0f048557723021ffeb31ca55f69b67de3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -897,15 +897,16 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1727182767, "lastModified": 1726937504,
"narHash": "sha256-MAegP5rQZ+B3IIoW8B1cHkUef2jcxvLOCYv4NyA0Q80=", "narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b02a84ef821fff142501f8daff9ce67f414ee240", "rev": "9357f4f23713673f310988025d9dc261c20e70c6",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -1275,11 +1276,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1727098951, "lastModified": 1727252110,
"narHash": "sha256-gplorAc0ISAUPemUNOnRUs7jr3WiLiHZb3DJh++IkZs=", "narHash": "sha256-3O7RWiXpvqBcCl84Mvqa8dXudZ1Bol1ubNdSmQt7nF4=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "35dfece10c642eb52928a48bee7ac06a59f93e9a", "rev": "1bff2ba6ec22bc90e9ad3f7e94cca0d37870afa3",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -3,9 +3,7 @@
inputs = { inputs = {
flakeParts.url = "github:hercules-ci/flake-parts"; flakeParts.url = "github:hercules-ci/flake-parts";
# FIXME remove constraint nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs";
# nixpkgsForSisko.url = "github:NixOS/nixpkgs/0e74ca98a74bc7270d28838369593635a5db3260";
nixosHardware.url = "github:NixOS/nixos-hardware"; nixosHardware.url = "github:NixOS/nixos-hardware";
homeManager = { homeManager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";

View file

@ -14,6 +14,7 @@ lib.mkMerge [
login-shell = "yes"; login-shell = "yes";
dpi-aware = "no"; dpi-aware = "no";
horizontal-letter-offset = "1"; horizontal-letter-offset = "1";
pad = "1x1";
font = font =
let let
size = "13"; size = "13";

View file

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
home.packages = [ pkgs.freecad-wayland ];
}

View file

@ -27,8 +27,6 @@ in
user.signingKey = "/home/${username}/.ssh/id_rsa"; user.signingKey = "/home/${username}/.ssh/id_rsa";
gpg.format = "ssh"; gpg.format = "ssh";
commit.gpgsign = true; commit.gpgsign = true;
core.editor = "emacsclient";
}; };
userName = config.name; userName = config.name;

View file

@ -8,6 +8,18 @@
{ {
programs.bat.enable = true; programs.bat.enable = true;
programs.ranger = {
enable = true;
settings = {
"preview_images" = true;
"preview_images_method" = "sixel";
};
};
programs.fzf.enable = true;
programs.ripgrep.enable = true;
programs.direnv = { programs.direnv = {
enable = true; enable = true;
config = { config = {
@ -16,12 +28,10 @@
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
# programs.exa = { programs.lsd = {
# enable = false; enable = false;
# enableAliases = true; enableAliases = true;
# }; };
# programs.fzf.enable = false;
programs.vim.enable = true; programs.vim.enable = true;
@ -50,75 +60,13 @@
}; };
}; };
# programs.starship = {
# enable = false;
# settings = {
# character = {
# success_symbol = "[👌](bold green)";
# error_symbol = "[🤌](bold red)";
# };
# nix_shell = {
# symbol = "❄ ";
# };
# };
# };
# Playing with it sometimes
# programs.nushell = {
# enable = false;
# configFile.text = ''
# let carapace_completer = {|spans|
# carapace $spans.0 nushell $spans | from json
# }
# let-env config = {
# show_banner: false
# ls: {
# use_ls_colors: true # use the LS_COLORS environment variable to colorize output
# clickable_links: true # enable or disable clickable links. Your terminal has to support links.
# }
# rm: {
# always_trash: true # always act as if -t was given. Can be overridden with -p
# }
# cd: {
# abbreviations: true # allows `cd s/o/f` to expand to `cd some/other/folder`
# }
# table: {
# mode: compact # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
# index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column
# trim: {
# methodology: wrapping # wrapping or truncating
# wrapping_try_keep_words: true # A strategy used by the 'wrapping' methodology
# truncating_suffix: "..." # A suffix used by the 'truncating' methodology
# }
# }
# history: {
# max_size: 10000 # Session has to be reloaded for this to take effect
# sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file
# file_format: "plaintext" # "sqlite" or "plaintext"
# }
# completions: {
# case_sensitive: false # set to true to enable case-sensitive completions
# quick: true # set this to false to prevent auto-selecting completions when only one remains
# partial: true # set this to false to prevent partial filling of the prompt
# algorithm: "fuzzy" # prefix or fuzzy
# external: {
# enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow
# max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
# completer: $carapace_completer # check 'carapace_completer' above as an example
# }
# }
# filesize: {
# metric: true # true => KB, MB, GB (ISO standard), false => KiB, MiB, GiB (Windows standard)
# format: "auto" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, zb, zib, auto
# }
# buffer_editor: "${config.programs.helix.package}/bin/helix"
# }
# '';
# };
programs.fish = { programs.fish = {
enable = true; enable = true;
shellInit = lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) '' shellInit =
''
fish_vi_key_bindings
''
+ lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) ''
export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path}) export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
''; '';
shellAliases = { shellAliases = {
@ -126,93 +74,18 @@
}; };
}; };
# programs.zsh = {
# enable = false; # Playing xswith fish at the moment
# enableAutosuggestions = true;
# enableCompletion = true;
# enableSyntaxHighlighting = true;
# enableVteIntegration = true;
# autocd = true;
# oh-my-zsh = {
# enable = true;
# plugins = [
# "ag"
# "cabal"
# "colored-man-pages"
# "colorize"
# "command-not-found"
# "fzf"
# "git"
# "nomad"
# "pass"
# "python"
# "sudo"
# "terraform"
# "thefuck"
# ];
# };
# plugins = [
# {
# name = "fzf-tab";
# src = pkgs.fetchFromGitHub {
# owner = "Aloxaf";
# repo = "fzf-tab";
# rev = "c2b4aa5ad2532cca91f23908ac7f00efb7ff09c9";
# sha256 = "sha256-gvZp8P3quOtcy1Xtt1LAW1cfZ/zCtnAmnWqcwrKel6w=";
# };
# }
# {
# name = "fzf-tab";
# src = pkgs.fetchFromGitHub {
# owner = "Aloxaf";
# repo = "fzf-tab";
# rev = "c2b4aa5ad2532cca91f23908ac7f00efb7ff09c9";
# sha256 = "sha256-gvZp8P3quOtcy1Xtt1LAW1cfZ/zCtnAmnWqcwrKel6w=";
# };
# }
# {
# name = "fast-syntax-highlighting";
# src = pkgs.fetchFromGitHub {
# owner = "zdharma-continuum";
# repo = "fast-syntax-highlighting";
# rev = "13d7b4e63468307b6dcb2dadf6150818f242cbff";
# sha256 = "sha256-AmsexwVombgVmRvl4O9Kd/WbnVJHPTXETxBv18PDHz4=";
# };
# }
# ];
# shellAliases = {
# "cat" = "bat";
# "em" = "TERM=wezterm emacsclient -nw";
# };
# loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec dbus-run-session Hyprland";
# envExtra = ''
# # [ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' # for Emacs TRAMP mode
# '';
# initExtra = ''
# export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
# # Don't enable VIM emulation when in Emacs
# [[ -z $INSIDE_EMACS ]] && source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
# # When enabling starship, home-manager add an `initExtra` rule to disable it when in Emacs but not with VTerm,
# # since I use also `eat` besides `vterm` the following line is needed
# [[ "$INSIDE_EMACS" =~ "eat" ]] && eval "$(${config.home.profileDirectory}/bin/starship init zsh)"
# '';
# };
home.packages = home.packages =
with pkgs; with pkgs;
[ [
thefuck thefuck
htop-vim
bottom
dig.dnsutils dig.dnsutils
lsof lsof
zsh-completions
nix-zsh-completions
comma comma
carapace # used by nushell ffmpeg-headless
neovim jless
nix-melt
jq
yq-go
] ]
++ (lib.optionals ++ (lib.optionals
(builtins.elem hostname [ (builtins.elem hostname [

View file

@ -7,7 +7,9 @@
home.packages = [ pkgs.tremotesf ]; home.packages = [ pkgs.tremotesf ];
systemd.user.services.tremotesf = { systemd.user.services.tremotesf = {
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [
"waybar.service"
];
Unit = { Unit = {
Description = "tremotesf"; Description = "tremotesf";

View file

@ -8,7 +8,6 @@
systemd.user.services.zmkBATx = { systemd.user.services.zmkBATx = {
Install.WantedBy = [ Install.WantedBy = [
"graphical-session.target"
"waybar.service" "waybar.service"
]; ];
@ -17,7 +16,7 @@
}; };
Service = { Service = {
ExecStart = lib.getExe pkgs.zmkBATx; ExecStart = "sleep 5 && ${lib.getExe pkgs.zmkBATx}";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 3; RestartSec = 3;
}; };

View file

@ -97,6 +97,7 @@
extraModules = with inputs; [ extraModules = with inputs; [
disko.nixosModules.disko disko.nixosModules.disko
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
lix-module.nixosModules.default
]; ];
secrets = { secrets = {
"sisko-wireguard-private-key" = { }; "sisko-wireguard-private-key" = { };

View file

@ -85,6 +85,7 @@
"vscode-server" "vscode-server"
"zk" "zk"
"catppuccin" "catppuccin"
"freecad"
]; ];
extraGroups = [ ]; extraGroups = [ ];
backupPaths = [ ]; backupPaths = [ ];

View file

@ -21,14 +21,7 @@
"invidious" "invidious"
"searx" "searx"
"rock5b-samba" "rock5b-samba"
# "paperless"
# "restic"
# "syncthing"
# "minio"
# # "matrix"
"forgejo" "forgejo"
# # "jellyfin"
# "immich"
"prometheus" "prometheus"
"grafana" "grafana"
"prometheus-exporters" "prometheus-exporters"
@ -36,7 +29,6 @@
"promtail" "promtail"
"garmin-collector" "garmin-collector"
"restic" "restic"
# "immich"
"atuin" "atuin"
] ]
++ [ ++ [

View file

@ -1,10 +1,6 @@
{ config, ... }:
let
nixpkgsImmich = builtins.getFlake "github:NixOS/nixpkgs/c0ee4c1770aa1ef998c977c4cc653a07ec95d9bf";
in
{ {
containers.nextcloud = { containers.immich = {
nixpkgs = nixpkgsImmich; nixpkgs = builtins.getFlake "github:NixOS/nixpkgs/51296fce6f2b33717f710788af4e134aa7ff0e58";
autoStart = true; autoStart = true;
privateNetwork = true; privateNetwork = true;
# hostAddress = "192.168.100.10"; # hostAddress = "192.168.100.10";

View file

@ -3,15 +3,18 @@
xdg = { xdg = {
portal = { portal = {
enable = true; enable = true;
extraPortals = with pkgs; [ configPackages = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
]; ];
config.common.default = "*"; extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
xdgOpenUsePortal = true;
wlr.enable = true;
}; };
}; };
environment.sessionVariables = {
GTK_USE_PORTAL = "1";
};
} }

View file

@ -15,7 +15,7 @@ let
rev = "5a3281dee9f889afdeea7263558e7a715dcf5aab"; rev = "5a3281dee9f889afdeea7263558e7a715dcf5aab";
hash = "sha256-UzpHAHpQx2MlmBNKm2turjeVmgp5zXKWm3nZbEo0mYE="; hash = "sha256-UzpHAHpQx2MlmBNKm2turjeVmgp5zXKWm3nZbEo0mYE=";
}; };
cargoSha256 = "sha256-wPV+ZY34OMbBrjmhvwjljbwmcUiPdWNHFU3ac7aVbIQ="; cargoHash = "sha256-wPV+ZY34OMbBrjmhvwjljbwmcUiPdWNHFU3ac7aVbIQ=";
patchPhase = '' patchPhase = ''
substituteInPlace src/lib.rs \ substituteInPlace src/lib.rs \