Skip to content

Commit

Permalink
refactor(system/svc): rework btrfs autoscrub integration (#317)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0aed9a9)
  • Loading branch information
piyoki authored Sep 9, 2024
1 parent fd8ae29 commit 64fbd88
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions profiles/workstation/9900x-desktop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"system/services/coolercontrold.nix"
"system/services/avahi.nix"
"system/networking/udp-gro-forwarding.nix"
("system/services/btrfs.nix" { fileSystems = [ "/persistent" ]; })

# themes modules
"themes"
Expand Down
8 changes: 8 additions & 0 deletions profiles/workstation/9900x-desktop/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,13 @@
# High-DPI console
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";

# HostPlatform
nixpkgs.hostPlatform = lib.mkDefault system;

# Maintenance services
services.btrfs.autoScrub = {
enable = true;
interval = "weekly";
fileSystems = [ "/persist" ];
};
}
1 change: 0 additions & 1 deletion profiles/workstation/thinkpad-x1-carbon/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
# external modules
inputs.home-estate.nixosModules.sdwan
];

# Set hostname
networking.hostName = "nixos-x1-carbon";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,13 @@
# High-DPI console
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";

# HostPlatform
nixpkgs.hostPlatform = lib.mkDefault system;

# Maintenance services
services.btrfs.autoScrub = {
enable = true;
interval = "weekly";
fileSystems = [ "/persistent" ];
};
}
7 changes: 0 additions & 7 deletions system/services/btrfs.nix

This file was deleted.

1 change: 0 additions & 1 deletion system/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ _:
./podman.nix
./greetd.nix
# ./virtualization.nix
./btrfs.nix
./fish.nix
./flatpak.nix
./gnome-keyring.nix
Expand Down

0 comments on commit 64fbd88

Please sign in to comment.