Compare commits
No commits in common. "d335f6c892cca780f8e2e3eefe7264de63d3d25a" and "903776dca6bdd8a6c88516cb5bd1df0428401e15" have entirely different histories.
d335f6c892
...
903776dca6
@ -111,12 +111,6 @@
|
|||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
builder = lib.nixosSystem {
|
|
||||||
modules = [./hosts/builder];
|
|
||||||
specialArgs = {
|
|
||||||
inherit inputs outputs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Standalone HM
|
# Standalone HM
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
{pkgs, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
FLAKE = "/home/julian/.dotfiles";
|
FLAKE = "/home/julian/.dotfiles";
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
{pkgs, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [../../gtk];
|
imports = [../../gtk];
|
||||||
|
|
||||||
services.blueman-applet.enable = true;
|
services.blueman-applet.enable = true;
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
./features/neovim
|
./features/neovim
|
||||||
./features/wezterm
|
./features/wezterm
|
||||||
./features/yazi
|
./features/yazi
|
||||||
./features/gtk
|
./features/nix-helper
|
||||||
|
./features/desktop
|
||||||
];
|
];
|
||||||
|
|
||||||
hostName = "pianonix";
|
hostName = "pianonix";
|
||||||
|
@ -1,15 +1,47 @@
|
|||||||
# sudo nixos-rebuild switch --flake .#builder --target-host root@192.168.3.118
|
# sudo nixos-rebuild switch --flake .#builder --target-host root@192.168.3.118
|
||||||
# or
|
# or
|
||||||
# deploy .#builder
|
# deploy .#builder
|
||||||
{config, ...}: {
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
../common/global
|
../common/global
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# hardware.graphics = {
|
||||||
|
# enable = true;
|
||||||
|
# extraPackages = with pkgs; [
|
||||||
|
# rocmPackages.clr.icd
|
||||||
|
# linuxPackages.amdgpu-pro
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
# boot.kernelParams = [
|
||||||
|
# "radeon.si_support=0"
|
||||||
|
# "radeon.cik_support=1"
|
||||||
|
# "amdgpu.si_support=0"
|
||||||
|
# "amdgpu.cik_support=1"
|
||||||
|
# ];
|
||||||
|
# boot.extraModulePackages = with config.boot.kernelPackages; [ amdgpu-pro ];
|
||||||
|
# boot.blacklistedKernelModules = [ "radeon" ];
|
||||||
|
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
||||||
|
# Emulated systems used as alternative to cross-compiling
|
||||||
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||||
|
|
||||||
networking.hostName = "builder";
|
networking.hostName = "builder";
|
||||||
system.stateVersion = "23.11";
|
|
||||||
|
modules = {
|
||||||
|
keymap.enable = true;
|
||||||
|
locales.enable = true;
|
||||||
|
sops.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
users.users.nix = {
|
users.users.nix = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
@ -55,6 +87,17 @@
|
|||||||
max-free = ${toString (100 * 1024 * 1024 * 1024)}
|
max-free = ${toString (100 * 1024 * 1024 * 1024)}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
htop
|
||||||
|
mc
|
||||||
|
|
||||||
|
# # AMD GPU tools
|
||||||
|
# pciutils
|
||||||
|
# nvtopPackages.amd
|
||||||
|
# linuxPackages.amdgpu-pro
|
||||||
|
];
|
||||||
|
|
||||||
nix.nrBuildUsers = 64;
|
nix.nrBuildUsers = 64;
|
||||||
|
|
||||||
# prevent memory to get filled
|
# prevent memory to get filled
|
||||||
@ -197,7 +240,7 @@
|
|||||||
|
|
||||||
sops.secrets."gitea_token" = {
|
sops.secrets."gitea_token" = {
|
||||||
owner = config.users.users.nix.name;
|
owner = config.users.users.nix.name;
|
||||||
sopsFile = ./secrets.yaml;
|
sopsFile = ../../../secrets/secrets-builder.yaml;
|
||||||
};
|
};
|
||||||
|
|
||||||
# =========== Binary Cache ==========
|
# =========== Binary Cache ==========
|
||||||
@ -207,7 +250,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# =========== Binary Cache with attic ==========
|
# =========== Binary Cache with attic ==========
|
||||||
sops.secrets."attic_token".sopsFile = ./secrets.yaml;
|
sops.secrets."attic_token".sopsFile = ../../../secrets/secrets-builder.yaml;
|
||||||
|
|
||||||
services.atticd = {
|
services.atticd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -241,4 +284,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# ======================== DO NOT CHANGE THIS ========================
|
||||||
|
system.stateVersion = "23.11";
|
||||||
|
# ======================== DO NOT CHANGE THIS ========================
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,15 @@
|
|||||||
{lib, ...}: {
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"ata_piix"
|
"ata_piix"
|
||||||
"uhci_hcd"
|
"uhci_hcd"
|
||||||
@ -24,27 +35,4 @@
|
|||||||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
# hardware.graphics = {
|
|
||||||
# enable = true;
|
|
||||||
# extraPackages = with pkgs; [
|
|
||||||
# rocmPackages.clr.icd
|
|
||||||
# linuxPackages.amdgpu-pro
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
# boot.kernelParams = [
|
|
||||||
# "radeon.si_support=0"
|
|
||||||
# "radeon.cik_support=1"
|
|
||||||
# "amdgpu.si_support=0"
|
|
||||||
# "amdgpu.cik_support=1"
|
|
||||||
# ];
|
|
||||||
# boot.extraModulePackages = with config.boot.kernelPackages; [ amdgpu-pro ];
|
|
||||||
# boot.blacklistedKernelModules = [ "radeon" ];
|
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.device = "/dev/sda";
|
|
||||||
|
|
||||||
# Emulated systems used as alternative to cross-compiling
|
|
||||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,19 @@
|
|||||||
../common/global
|
../common/global
|
||||||
../common/users/julian
|
../common/users/julian
|
||||||
|
|
||||||
|
# ../common/optional/openssh.nix
|
||||||
|
# ../common/optional/greetd.nix
|
||||||
../common/optional/pipewire.nix
|
../common/optional/pipewire.nix
|
||||||
../common/optional/remote-builder.nix
|
../common/optional/remote-builder.nix
|
||||||
|
# ../common/optional/boot-efi.nix
|
||||||
../common/optional/pcmanfm.nix
|
../common/optional/pcmanfm.nix
|
||||||
|
# ../common/optional/i3.nix
|
||||||
|
# ../common/optional/gdm.nix
|
||||||
../common/optional/redshift.nix
|
../common/optional/redshift.nix
|
||||||
../common/optional/authentication.nix
|
# ../common/optional/virtualbox.nix
|
||||||
|
../common/optional/xdg-portal.nix
|
||||||
|
../common/optional/polkit.nix # TODO: maybe not needed!
|
||||||
|
../common/optional/keyring.nix # TODO: maybe not needed!
|
||||||
];
|
];
|
||||||
|
|
||||||
# disko.devices.disk.main.device = "/dev/mmcblk1";
|
# disko.devices.disk.main.device = "/dev/mmcblk1";
|
||||||
@ -31,7 +39,6 @@
|
|||||||
# "@SSID@".psk = "@PSK@";
|
# "@SSID@".psk = "@PSK@";
|
||||||
# };
|
# };
|
||||||
networking.hostName = "pianonix";
|
networking.hostName = "pianonix";
|
||||||
system.stateVersion = "22.11";
|
|
||||||
|
|
||||||
sops.secrets."vnc-passwd" = {
|
sops.secrets."vnc-passwd" = {
|
||||||
owner = config.users.users.julian.name;
|
owner = config.users.users.julian.name;
|
||||||
@ -128,7 +135,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Packages needed as root
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
htop
|
||||||
|
mc
|
||||||
|
];
|
||||||
|
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
5900 # for vnc
|
5900 # for vnc
|
||||||
];
|
];
|
||||||
@ -155,4 +170,8 @@
|
|||||||
# boot.loader.raspberryPi.firmwareConfig = ''
|
# boot.loader.raspberryPi.firmwareConfig = ''
|
||||||
# dtparam=audio=on
|
# dtparam=audio=on
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
|
# ======================== DO NOT CHANGE THIS ========================
|
||||||
|
system.stateVersion = "22.11";
|
||||||
|
# ======================== DO NOT CHANGE THIS ========================
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user