Compare commits
4 commits
c99ad3d97a
...
5129239a24
Author | SHA1 | Date | |
---|---|---|---|
5129239a24 | |||
ddbe5c35c5 | |||
1babc7912d | |||
7e53c288fe |
8 changed files with 64 additions and 25 deletions
36
flake.lock
generated
36
flake.lock
generated
|
@ -8,11 +8,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1747022610,
|
"lastModified": 1747403139,
|
||||||
"narHash": "sha256-d6SvA0gTHDrOqt4tZRVD0Gm5G4w6jAFJ6lis79PjSPw=",
|
"narHash": "sha256-GpldCFeC+YP9m2xm1POByfT3+9J9/nwst0CYxvR85I0=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "d4b3ffe3e719e42b175ccdef13598516f0a8025d",
|
"rev": "1ebb2cf654110901889353440027993312e1aeb0",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -118,11 +118,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747021744,
|
"lastModified": 1747427366,
|
||||||
"narHash": "sha256-IDsM/9/tHQBlhG3tXI2fTM84AUN1uRa7JDPT1LMlGes=",
|
"narHash": "sha256-c3UfEsnT94bt6ta1VELYQhAWkQWFGlB+7DmBmthlGGg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "fb061f555f821fe4fb49f8f6f2a0cc3d5728bd52",
|
"rev": "74d31e1165341bf510ee2017841a599f5cfc1608",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -174,11 +174,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746814339,
|
"lastModified": 1747129300,
|
||||||
"narHash": "sha256-hf2lICJzwACWuzHCmZn5NI6LUAOgGdR1yh8ip+duyhk=",
|
"narHash": "sha256-L3clA5YGeYCF47ghsI7Tcex+DnaaN/BbQ4dR2wzoiKg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "3c5e12673265dfb0de3d9121420c0c2153bf21e0",
|
"rev": "e81fd167b33121269149c57806599045fd33eeed",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -189,11 +189,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746904237,
|
"lastModified": 1747179050,
|
||||||
"narHash": "sha256-3e+AVBczosP5dCLQmMoMEogM57gmZ2qrVSrmq9aResQ=",
|
"narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d89fc19e405cb2d55ce7cc114356846a0ee5e956",
|
"rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -260,11 +260,11 @@
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746940940,
|
"lastModified": 1747389489,
|
||||||
"narHash": "sha256-ASB3QVEoFK5//280uedYdt8jyDLhFa9zgj8qfc0S7Sk=",
|
"narHash": "sha256-PN5lxjC+Oh4oANayNRN0deD4F8N5yZ1Zw+NI9SfQt80=",
|
||||||
"owner": "notashelf",
|
"owner": "notashelf",
|
||||||
"repo": "nvf",
|
"repo": "nvf",
|
||||||
"rev": "815ed49d3693346122ef61da6d7443cd3cc21752",
|
"rev": "74587e254ac7f8f7a7eca58aede14badde20dee6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -373,11 +373,11 @@
|
||||||
},
|
},
|
||||||
"stable": {
|
"stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746810718,
|
"lastModified": 1747209494,
|
||||||
"narHash": "sha256-VljtYzyttmvkWUKTVJVW93qAsJsrBbgAzy7DdnJaQfI=",
|
"narHash": "sha256-fLise+ys+bpyjuUUkbwqo5W/UyIELvRz9lPBPoB0fbM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0c0bf9c057382d5f6f63d54fd61f1abd5e1c2f63",
|
"rev": "5d736263df906c5da72ab0f372427814de2f52f8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -20,7 +20,8 @@ let
|
||||||
cursor_shape = "Beam";
|
cursor_shape = "Beam";
|
||||||
};
|
};
|
||||||
defaultFont = {
|
defaultFont = {
|
||||||
name = "Hack Nerd Font";
|
name = "Hack Nerd Font Mono";
|
||||||
|
package = pkgs.nerd-fonts.hack;
|
||||||
size = 12;
|
size = 12;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
@ -33,7 +34,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.kitty-themes ];
|
home.packages = [
|
||||||
|
pkgs.kitty-themes
|
||||||
|
defaultFont.package
|
||||||
|
]; # fc-cache -fv clear fontconfig when error
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
themeFile = "tokyo_night_night";
|
themeFile = "tokyo_night_night";
|
||||||
|
|
|
@ -48,6 +48,7 @@ in
|
||||||
kdiskmark
|
kdiskmark
|
||||||
networkmanager
|
networkmanager
|
||||||
kdePackages.networkmanager-qt
|
kdePackages.networkmanager-qt
|
||||||
|
kdePackages.wallpaper-engine-plugin
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ in
|
||||||
check = it: lib.isString it && lib.types.path.check it;
|
check = it: lib.isString it && lib.types.path.check it;
|
||||||
};
|
};
|
||||||
example = "/run/secrets/linkwarden";
|
example = "/run/secrets/linkwarden";
|
||||||
|
default = "/run/secrets/linkwarden";
|
||||||
description = ''
|
description = ''
|
||||||
Path of a file with extra environment variables to be loaded from disk.
|
Path of a file with extra environment variables to be loaded from disk.
|
||||||
This file is not added to the nix store, so it can be used to pass secrets to linkwarden.
|
This file is not added to the nix store, so it can be used to pass secrets to linkwarden.
|
||||||
|
|
25
modules/nixos/system/tmp/default.nix
Normal file
25
modules/nixos/system/tmp/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
namespace,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
with lib.${namespace};
|
||||||
|
let
|
||||||
|
cfg = config.${namespace}.system.tmpfs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.${namespace}.system.tmpfs = with types; {
|
||||||
|
enable = mkBoolOpt false "Whether or not to use tmpfs for /tmp.";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
boot.tmp = {
|
||||||
|
cleanOnBoot = true;
|
||||||
|
tmpfsSize = "50%";
|
||||||
|
useTmpfs = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -56,16 +56,17 @@ with lib.${namespace};
|
||||||
cinny = enabled;
|
cinny = enabled;
|
||||||
ente-auth = enabled;
|
ente-auth = enabled;
|
||||||
restic = enabled;
|
restic = enabled;
|
||||||
linkwarden = {
|
linkwarden = enabled;
|
||||||
enable = true;
|
|
||||||
secretsFile = "/run/secrets/linkwarden";
|
|
||||||
};
|
|
||||||
forgejo = enabled;
|
forgejo = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
#container.invidious = enabled;
|
#container.invidious = enabled;
|
||||||
|
|
||||||
system.sops = enabled;
|
system = {
|
||||||
|
sops = enabled;
|
||||||
|
tmpfs = enabled;
|
||||||
|
};
|
||||||
|
|
||||||
cli.neovim = enabled;
|
cli.neovim = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@ with lib.${namespace};
|
||||||
};
|
};
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
|
tmpfs = enabled;
|
||||||
fonts = {
|
fonts = {
|
||||||
enable = true;
|
enable = true;
|
||||||
emoji = true;
|
emoji = true;
|
||||||
|
|
|
@ -39,8 +39,14 @@ with lib.${namespace};
|
||||||
eza = enabled;
|
eza = enabled;
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.tmpfs = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
];
|
||||||
|
|
||||||
# Set your time zone
|
# Set your time zone
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue