-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
965cbe7
commit 5cadb62
Showing
18 changed files
with
544 additions
and
883 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 |
---|---|---|
|
@@ -90,8 +90,12 @@ terraform.rc | |
id_ed25519* | ||
tfplan | ||
output.json | ||
inputs.tfvars | ||
|
||
# Nix | ||
.env* | ||
result | ||
*.qcow2 | ||
|
||
# Magalu CLI | ||
mgc_cli |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,14 +1,29 @@ | ||
{ modulesPath, ... }: | ||
{ modulesPath, pkgs, ... }: | ||
|
||
{ | ||
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ]; | ||
imports = [ | ||
./hardware-configuration.nix | ||
]; | ||
|
||
zramSwap.enable = true; | ||
# Nix configuration | ||
nix.settings.trusted-users = [ "@wheel" ]; | ||
nix = { | ||
package = pkgs.nixVersions.stable; | ||
extraOptions = '' | ||
experimental-features = nix-command flakes | ||
''; | ||
# Clean up /nix/store/ after a week | ||
gc = { | ||
automatic = true; | ||
dates = "weekly UTC"; | ||
options = "--delete-older-than 7d"; | ||
}; | ||
}; | ||
nixpkgs = { | ||
hostPlatform = "x86_64-linux"; | ||
config.allowUnfree = true; | ||
}; | ||
|
||
swapDevices = [ | ||
{ | ||
device = "/swapfile"; | ||
size = 8 * 1024; | ||
} | ||
]; | ||
# Don't change this! | ||
system.stateVersion = "24.11"; | ||
} |
Oops, something went wrong.