This commit is contained in:
Osman Faruk Bayram 2025-01-15 20:25:18 +03:00
parent fe7dc6088d
commit ac28b07ba7
6 changed files with 74 additions and 73 deletions

View file

@ -27,9 +27,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixos-hardware = { nixos-hardware.url = "github:NixOS/nixos-hardware/master";
url = "github:NixOS/nixos-hardware/master";
};
}; };
outputs = { outputs = {
@ -54,8 +52,8 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
environment.systemPackages = [ environment.systemPackages = [
agenix.packages.${system}.default agenix.packages.x86_64-linux.default
osbm-nvim.packages.${system}.default osbm-nvim.packages.x86_64-linux.default
]; ];
} }
]; ];
@ -71,8 +69,8 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
environment.systemPackages = [ environment.systemPackages = [
agenix.packages.${system}.default agenix.packages.x86_64-linux.default
osbm-nvim.packages.${system}.default osbm-nvim.packages.x86_64-linux.default
]; ];
} }
]; ];
@ -87,7 +85,7 @@
./hosts/harmonica/configuration.nix ./hosts/harmonica/configuration.nix
{ {
environment.systemPackages = [ environment.systemPackages = [
agenix.packages.${system}.default agenix.packages.aarch64-linux.default
]; ];
} }
]; ];
@ -102,8 +100,8 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
environment.systemPackages = [ environment.systemPackages = [
agenix.packages.${system}.default agenix.packages.aarch64-linux.default
osbm-nvim.packages.${system}.default osbm-nvim.packages.aarch64-linux.default
]; ];
} }
]; ];

View file

@ -1,42 +1,46 @@
{ pkgs, lib, ... }: { {
# bcm2711 for rpi 3, 3+, 4, zero 2 w pkgs,
# bcm2712 for rpi 5 lib,
# See the docs at: ...
# https://www.raspberrypi.com/documentation/computers/linux_kernel.html#native-build-configuration }: {
raspberry-pi-nix.board = "bcm2712"; # bcm2711 for rpi 3, 3+, 4, zero 2 w
time.timeZone = "America/Chicago"; # bcm2712 for rpi 5
users.users.root = { # See the docs at:
initialPassword = "root"; # https://www.raspberrypi.com/documentation/computers/linux_kernel.html#native-build-configuration
}; raspberry-pi-nix.board = "bcm2712";
# Define a user account. Don't forget to set a password with passwd. time.timeZone = "America/Chicago";
users.users.osbm = { users.users.root = {
isNormalUser = true; initialPassword = "root";
extraGroups = [ "wheel" ]; # Enable sudo for the user. };
initialPassword = "changeme"; # Define a user account. Don't forget to set a password with passwd.
}; users.users.osbm = {
isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user.
initialPassword = "changeme";
};
networking = { networking = {
hostName = "pochita"; hostName = "pochita";
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim neovim
git-lfs git-lfs
git git
wakeonlan wakeonlan
htop htop
unzip unzip
zip zip
wget wget
]; ];
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings.trusted-users = ["root" "osbm"]; nix.settings.trusted-users = ["root" "osbm"];
nixpkgs.hostPlatform = "aarch64-linux"; nixpkgs.hostPlatform = "aarch64-linux";
services.openssh = { services.openssh = {
enable = true; enable = true;
}; };
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }

View file

@ -41,7 +41,7 @@ in {
services.getty.autologinUser = "osbm"; services.getty.autologinUser = "osbm";
# The board and wanted kernel version # The board and wanted kernel version
raspberry-pi-nix = { raspberry-pi-nix = {
board = "bcm2712"; board = "bcm2712";
#kernel-version = "v6_10_12"; #kernel-version = "v6_10_12";

View file

@ -1,30 +1,34 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
]; pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ ]; boot.initrd.availableKernelModules = [];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ ]; boot.kernelModules = [];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot/firmware" = fileSystems."/boot/firmware" = {
{ device = "/dev/disk/by-uuid/2178-694E"; device = "/dev/disk/by-uuid/2178-694E";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = ["fmask=0022" "dmask=0022"];
}; };
swapDevices = [ ]; swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
@ -35,4 +39,4 @@
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true; # networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
} }

View file

@ -4,7 +4,6 @@
config, config,
... ...
}: { }: {
options = { options = {
enableFonts = lib.mkOption { enableFonts = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
@ -36,6 +35,4 @@
]; ];
}) })
]; ];
} }

View file

@ -24,8 +24,6 @@
hashKnownHosts = true; hashKnownHosts = true;
compression = true; compression = true;
matchBlocks = { matchBlocks = {
"tartarus" = { "tartarus" = {
hostname = "192.168.0.4"; hostname = "192.168.0.4";