finally, nix-rice

This commit is contained in:
atagen 2023-05-21 15:42:47 +10:00
parent 70b8efe0cb
commit 8c093b6658
6 changed files with 203 additions and 218 deletions

View file

@ -33,39 +33,6 @@
# inputs.helix
];
# stylix = {
# polarity = "dark";
# image = pkgs.fetchurl {
# sha256 = "sha256-6BCoxgqK5pCxv5P7Rf5MoyLbHAShRd3YuacAcZ916C8=";
# url = "https://gruvbox-wallpapers.pages.dev/wallpapers/irl/flowers-2.jpg";
# };
# base16Scheme = "${inputs.base16-schemes}/gruvbox-dark-hard.yaml";
# fonts = {
# sizes = {
# desktop = 12;
# popups = 12;
# terminal = 10;
# applications = 12;
# };
# monospace = {
# name = "Fira Code";
# package = pkgs.fira-code;
# };
# sansSerif = {
# name = "Inria Sans";
# package = pkgs.inriafonts;
# };
# serif = {
# name = "Inria Serif";
# package = pkgs.inriafonts;
# };
# emoji = {
# name = "Twitter Color Emoji";
# package = pkgs.twemoji-color-font;
# };
# };
# };
# cachix = [
# "nix-community"
# ];
@ -85,7 +52,7 @@
boot.loader.timeout = 3;
boot.loader.systemd-boot.enable = true;
boot.tmpOnTmpfs = true;
boot.tmp.useTmpfs = true;
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
@ -207,8 +174,7 @@
serviceConfig = {
Type = "oneshot";
User = "root";
ExecStart = '' ${pkgs.bash}/bin/bash -c 'if [[ "$( ${pkgs.iproute2}/bin/ip rule | grep -e "62:.*52" | wc -l)" -eq 0 ]]; then ${pkgs.iproute2}/bin/ip rule add pref 62 table 52; fi''';
# ExecStop = ''${pkgs.iproute2}/bin/ip rule del pref 62 table 52'';
ExecStart = ''${pkgs.bash}/bin/bash -c "if [[ \"$( ${pkgs.iproute2}/bin/ip rule | grep -e \"62:.*52\" | wc -l)\" -eq 0 ]]; then ${pkgs.iproute2}/bin/ip rule add pref 62 table 52; fi"'';
};
};