Compare commits
2 Commits
d797930509
...
7eb065a536
| Author | SHA1 | Date | |
|---|---|---|---|
| 7eb065a536 | |||
| 779fca1741 |
23
flake.nix
23
flake.nix
@@ -20,13 +20,20 @@
|
|||||||
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, nixvim, ... }@inputs:
|
outputs =
|
||||||
|
{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
nixvim,
|
||||||
|
...
|
||||||
|
}@inputs:
|
||||||
let
|
let
|
||||||
primaryUser = "phil";
|
primaryUser = "phil";
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations."rpi-4" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."cyper-pi-1" = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./nixos/default.nix
|
./nixos/default.nix
|
||||||
@@ -34,12 +41,12 @@
|
|||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${primaryUser} = import ./home/default.nix;
|
users.${primaryUser} = import ./home/default.nix;
|
||||||
extraSpecialArgs = { inherit inputs primaryUser; };
|
extraSpecialArgs = { inherit inputs primaryUser; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
specialArgs = { inherit inputs self primaryUser; };
|
specialArgs = { inherit inputs self primaryUser; };
|
||||||
|
|||||||
23
hosts/cyper-pi-1/configuration.nix
Normal file
23
hosts/cyper-pi-1/configuration.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
#pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Host-specific packages
|
||||||
|
#environment.systemPackages = with pkgs; [
|
||||||
|
# python3
|
||||||
|
# nodejs
|
||||||
|
#];
|
||||||
|
|
||||||
|
# Any RPi 4 specific customizations go here
|
||||||
|
networking = {
|
||||||
|
hostName = "cyper-pi-1";
|
||||||
|
interfaces.end0.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "192.168.2.41";
|
||||||
|
prefixLength = 24;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, pkgs, primaryUser, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Host-specific packages
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# python3
|
|
||||||
# nodejs
|
|
||||||
];
|
|
||||||
|
|
||||||
# Any RPi 4 specific customizations go here
|
|
||||||
networking.hostName = "rpi-4";
|
|
||||||
}
|
|
||||||
@@ -28,8 +28,37 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "rpi-4";
|
hostName = "cyper-pi";
|
||||||
networkmanager.enable = true;
|
networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
unmanaged = [
|
||||||
|
"*"
|
||||||
|
"except:type:wwan"
|
||||||
|
"except:type:gsm"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
defaultGateway = "192.168.2.1";
|
||||||
|
nameservers = [
|
||||||
|
"192.168.2.2"
|
||||||
|
"8.8.8.8"
|
||||||
|
"1.1.1.1"
|
||||||
|
];
|
||||||
|
|
||||||
|
wireless = {
|
||||||
|
enable = true;
|
||||||
|
networks = {
|
||||||
|
LANFRED = {
|
||||||
|
pskRaw = "36e2b41b51328800a9582be1a05f13f796f943569610ccdb61304803b86ce3da";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
enableIPv6 = false;
|
||||||
|
|
||||||
|
firewall = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# SSH configuration
|
# SSH configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user