Skip to content

Commit

Permalink
WIP: Update to NixOS 24.11
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly committed Dec 16, 2024
1 parent a6ab55d commit 4813ce2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 47 deletions.
16 changes: 8 additions & 8 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
# NixOS related inputs
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";

nixos-hardware.url = "github:NixOS/nixos-hardware/master";
sops-nix = {
Expand Down Expand Up @@ -35,7 +35,7 @@

# home-manager related inputs
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nurpkgs.url = "github:nix-community/NUR";
Expand Down
68 changes: 34 additions & 34 deletions home-config/config/applications/graphical/keepassxc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,40 @@ in
{
home.packages = with pkgs; [ keepassxc ];

systemd.user.services.keepass-sync = {
Unit.Description = "KeepassXC synchronization";
Service = {
Type = "oneshot";
ExecStart =
builtins.toString (
pkgs.writeShellApplication {
name = "sync-keepassxc";
runtimeInputs = with pkgs; [
coreutils
gnugrep
libsecret
nextcloudcmd
];
# systemd.user.services.keepass-sync = {
# Unit.Description = "KeepassXC synchronization";
# Service = {
# Type = "oneshot";
# ExecStart =
# builtins.toString (
# pkgs.writeShellApplication {
# name = "sync-keepassxc";
# runtimeInputs = with pkgs; [
# coreutils
# gnugrep
# libsecret
# nextcloudcmd
# ];

text = ''
(secret-tool search URL 'https://nextcloud.tlater.net' 2>&1 \
| grep UserName \
| cut -d' ' -f3; \
secret-tool lookup URL 'https://nextcloud.tlater.net') | \
nextcloudcmd \
--path Backups/keepass \
"$HOME/.local/share/keepassxc/synced/" \
'https://nextcloud.tlater.net'
'';
}
)
+ "/bin/sync-keepassxc";
};
};
# text = ''
# (secret-tool search URL 'https://nextcloud.tlater.net' 2>&1 \
# | grep UserName \
# | cut -d' ' -f3; \
# secret-tool lookup URL 'https://nextcloud.tlater.net') | \
# nextcloudcmd \
# --path Backups/keepass \
# "$HOME/.local/share/keepassxc/synced/" \
# 'https://nextcloud.tlater.net'
# '';
# }
# )
# + "/bin/sync-keepassxc";
# };
# };

systemd.user.timers.keepass-sync = {
Unit.Description = "Periodic KeepassXC synchronization";
Timer.OnCalendar = "hourly";
Install.WantedBy = [ "timers.target" ];
};
# systemd.user.timers.keepass-sync = {
# Unit.Description = "Periodic KeepassXC synchronization";
# Timer.OnCalendar = "hourly";
# Install.WantedBy = [ "timers.target" ];
# };
}
4 changes: 1 addition & 3 deletions nixos-config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
];

nix = {
package = pkgs.nixFlakes;

settings = {
auto-optimise-store = true;
experimental-features = [
Expand Down Expand Up @@ -122,7 +120,7 @@
packages = with pkgs; [
hack-font
noto-fonts
noto-fonts-cjk
noto-fonts-cjk-sans
noto-fonts-emoji
];

Expand Down

0 comments on commit 4813ce2

Please sign in to comment.