-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from MLFlexer/rasptest
Rasptest
- Loading branch information
Showing
5 changed files
with
72 additions
and
59 deletions.
There are no files selected for viewing
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,2 +1,4 @@ | ||
experimental-features = nix-command flakes | ||
extra-platforms = aarch64-linux | ||
substituters = https://cache.nixos.org https://nix-community.cachix.org | ||
trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= |
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,6 +1,5 @@ | ||
{ pkgs, ... }: | ||
let user = "mlflexer"; | ||
in { | ||
{ pkgs, unstable, user, raspberry-pi-nix, ... }: | ||
{ | ||
time.timeZone = "Europe/Copenhagen"; | ||
# Select internationalisation properties. | ||
i18n.defaultLocale = "en_DK.UTF-8"; | ||
|
@@ -16,7 +15,8 @@ in { | |
enable = true; | ||
userControlled.enable = true; | ||
|
||
networks = { }; | ||
networks = { | ||
}; | ||
}; | ||
}; | ||
|
||
|
@@ -32,23 +32,32 @@ in { | |
shell = pkgs.zsh; | ||
packages = (with pkgs; [ | ||
home-manager | ||
btop | ||
tmux | ||
blocky | ||
minecraft-server | ||
jdk | ||
btop | ||
# stable | ||
]); # ++ (with unstable; [ | ||
# # unstable | ||
# ]); | ||
]); #++ (with unstable; []); | ||
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINdXjmV661jKgb8bOQ8MqpOlNTfRSo/AneI4KqJ6dhcf [email protected]" ]; | ||
}; | ||
|
||
programs.zsh.enable = true; | ||
|
||
services.openssh = { | ||
enable = true; | ||
settings.PasswordAuthentication = true; | ||
}; | ||
|
||
networking.firewall.allowedTCPPorts = [ 22 443 8080 25565 ]; | ||
services.adguardhome = { | ||
enable = true; | ||
openFirewall = true; | ||
allowDHCP = true; | ||
}; | ||
|
||
networking.firewall.allowedTCPPorts = [ 22 443 53 80 4221 5000 8000 8080 25565 6969 ]; | ||
networking.firewall.allowedUDPPortRanges = [ | ||
{ from = 2456; to = 2457; } # Valheim | ||
{ from = 53; to = 53; } # adguard | ||
]; | ||
|
||
nix = { | ||
settings.auto-optimise-store = true; | ||
|
@@ -63,7 +72,8 @@ in { | |
nixpkgs.config.allowUnfree = true; | ||
|
||
environment.systemPackages = with pkgs; [ vim git bluez bluez-tools ]; | ||
system.stateVersion = "23.11"; | ||
system.stateVersion = "24.05"; | ||
raspberry-pi-nix.board = "bcm2712"; | ||
hardware = { | ||
bluetooth.enable = true; | ||
raspberry-pi = { | ||
|
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,8 +1,24 @@ | ||
{ inputs, ... }: | ||
|
||
inputs.nixpkgs.lib.nixosSystem { | ||
let | ||
system = "aarch64-linux"; | ||
user = "mlflexer"; | ||
|
||
unstable = import inputs.nixpkgs-unstable { | ||
inherit system; | ||
config.allowUnfree = true; | ||
}; | ||
|
||
lib = inputs.nixpkgs.lib; | ||
|
||
raspberry-pi-nix = inputs.raspberry-pi-nix; | ||
|
||
in lib.nixosSystem { | ||
inherit system; | ||
specialArgs = { | ||
inherit unstable user raspberry-pi-nix; | ||
}; | ||
modules = | ||
[ inputs.raspberry-pi-nix.nixosModules.raspberry-pi ./configuration.nix ]; | ||
[ raspberry-pi-nix.nixosModules.raspberry-pi ./configuration.nix ]; | ||
} | ||
|