-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flake: reorg common modules as flake outputs (#95)
* initial committ * move plymouth and printing to desktop modules * rename commonModules -> common * rename commonModules -> common * move nix settings base -> common/nix * nix fmt * move baseModules to common/base
- Loading branch information
1 parent
832f7fe
commit 29bc4af
Showing
22 changed files
with
211 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
config, | ||
lib, | ||
... | ||
}: { | ||
environment.variables.FLAKE = lib.mkDefault "github:alyraffauf/nixcfg"; | ||
|
||
system.autoUpgrade = { | ||
enable = true; | ||
allowReboot = false; | ||
dates = "02:00"; | ||
flags = ["--accept-flake-config"]; | ||
flake = config.environment.variables.FLAKE; | ||
operation = "switch"; | ||
persistent = true; | ||
randomizedDelaySec = "30min"; | ||
|
||
rebootWindow = { | ||
lower = "02:00"; | ||
upper = "06:00"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
nix = { | ||
gc = { | ||
automatic = true; | ||
dates = "daily"; | ||
options = "--delete-older-than 3d"; | ||
persistent = true; | ||
randomizedDelaySec = "60min"; | ||
}; | ||
|
||
# Run GC when there is less than 100MiB left. | ||
extraOptions = '' | ||
min-free = ${toString (100 * 1024 * 1024)} | ||
max-free = ${toString (1024 * 1024 * 1024)} | ||
''; | ||
|
||
optimise.automatic = true; | ||
|
||
settings = { | ||
auto-optimise-store = false; | ||
experimental-features = ["nix-command" "flakes"]; | ||
|
||
substituters = [ | ||
"https://alyraffauf.cachix.org" | ||
"https://cache.nixos.org/" | ||
"https://nix-community.cachix.org" | ||
]; | ||
|
||
trusted-public-keys = [ | ||
"alyraffauf.cachix.org-1:GQVrRGfjTtkPGS8M6y7Ik0z4zLt77O0N25ynv2gWzDM=" | ||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" | ||
]; | ||
|
||
trusted-users = ["aly"]; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
pkgs, | ||
self, | ||
... | ||
}: let | ||
unstable = import self.inputs.nixpkgs-unstable { | ||
system = pkgs.system; | ||
}; | ||
in { | ||
nixpkgs = { | ||
config.allowUnfree = true; # Allow unfree packages | ||
|
||
overlays = [ | ||
(final: prev: { | ||
rofi-bluetooth = | ||
prev.rofi-bluetooth.overrideAttrs | ||
(old: { | ||
version = "unstable-2024-07-25"; | ||
|
||
src = pkgs.fetchFromGitHub { | ||
owner = "alyraffauf"; | ||
repo = old.pname; | ||
rev = "50252e4a9aebe4899a6ef2f7bc11d91b7e4aa8ae"; | ||
sha256 = "sha256-o0Sr3/888L/2KzZZP/EcXx+8ZUzdHB/I/VIeVuJvJks="; | ||
}; | ||
}); | ||
|
||
zed-editor = unstable.zed-editor; | ||
}) | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
pkgs, | ||
self, | ||
... | ||
}: { | ||
environment.systemPackages = (with pkgs; [git inxi python3]) ++ [self.inputs.agenix.packages.${pkgs.system}.default]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{config, ...}: { | ||
age.secrets.tailscaleAuthKey.file = ../secrets/tailscale/authKeyFile.age; | ||
|
||
services.tailscale = { | ||
enable = true; | ||
openFirewall = true; | ||
authKeyFile = config.age.secrets.tailscaleAuthKey.path; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.