1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Multi hosts, finally

This commit is contained in:
RGBCube 2024-01-02 13:41:00 +03:00
parent 084d2093bd
commit bd42073480
No known key found for this signature in database
48 changed files with 200 additions and 311 deletions

View file

@ -1,12 +1,14 @@
{ lib, ulib, ... }: with ulib; merge3
{ ulib, ... }: with ulib; merge
(systemConfiguration {
system.stateVersion = "23.05";
nixpkgs.hostPlatform = "x86_64-linux";
time.timeZone = "Europe/Amsterdam";
users.users.rgb = normalUser {
description = "NixOS";
description = "RGB";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRSLWxpIMOZIQv9ggDnAwSxmux/TZvuEPgq2HFiH+oI2OE07xYQAiroBVI5HH+aIg1nwpYtArANoD8V9Hrx2XCo2py/fMi9LhJWNMlFVcRLqYrCmrZYhBqZhxXIdY+wXqkSE7kvTKsz84BrhwilfA/bqTgVw2Ro6w0RnTzUhlYx4w10DT3isN09cQJMgvuyWNRlpGpkEGhPwyXythKM2ERoHTfq/XtpiGZQeLr6yoTTd9q4rbvnGGka5IUEz3RrmeXEs13l02IY6dCUFJkRRsK8dvB9zFjQyM08IqdaoHeudZoCOsnl/AiegZ7C5FoYEKIXY86RqxS3TH3nwuxe2fXTNr9gwf2PumM1Yh2WxV4+pHQOksxW8rWgv1nXMT5AG0RrJxr+S0Nn7NBbzCImrprX3mg4vJqT24xcUjUSDYllEMa2ioXGCeff8cwVKK/Ly5fwj0AX1scjiw+b7jD6VvDLA5z+ALwCblxiRMCN0SOMk9/V2Xsg9YIRMHyQwpqu8k= u0_a216@localhost" ];
};
@ -14,31 +16,4 @@
(homeConfiguration {
home.stateVersion = "23.11";
programs.git.extraConfig.commit.gpgSign = lib.mkForce false;
})
(importModules [
./hardware.nix
"bat"
"btop"
"endlessh"
"git"
"helix"
"kernel"
"localisation"
"networkmanager"
"nix"
"nushell"
"openssh"
"pueue"
"packages"
"python"
"ripgrep"
"rust"
"site"
"ssh"
"sudo"
"tmp"
])

View file

@ -1,9 +1,7 @@
{ ulib, modulesPath, ... }: with ulib;
systemConfiguration {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub = enabled {
device = "/dev/vda";

View file

@ -1,17 +0,0 @@
{ ulib, pkgs, ... }: with ulib;
systemPackages (with pkgs; [
fastfetch
fd
hyperfine
moreutils
nix-index
nix-output-monitor
p7zip
pstree
strace
tree
yt-dlp
gh
])

View file

@ -1,12 +1,13 @@
{ ulib, ... }: with ulib; merge3
{ ulib, ... }: with ulib; merge
(systemConfiguration {
system.stateVersion = "23.05";
console.keyMap = "trq";
nixpkgs.hostPlatform = "x86_64-linux";
time.timeZone = "Europe/Istanbul";
users.users.nixos = normalUser {
users.users.nixos = graphicalUser {
description = "NixOS";
extraGroups = [ "wheel" ];
};
@ -19,44 +20,3 @@
(homeConfiguration {
home.stateVersion = "23.05";
})
(importModules [
./hardware.nix
"autofreq"
"bat"
"blueman"
"boot"
"btop"
"discord"
"dunst"
"firefox"
"fonts"
"fuzzel"
"ghostty"
"git"
"gtk"
"helix"
"hyprland"
"kernel"
"kitty"
"localisation"
"logind"
"networkmanager"
"nix"
"nushell"
"openttd"
"packages"
"pipewire"
"pueue"
"python"
"qt"
"ripgrep"
"rust"
"ssh"
"steam"
"sudo"
"tmp"
"w3m"
"waybar"
])

View file

@ -1,4 +1,12 @@
{
{ ulib, ... }: with ulib;
systemConfiguration {
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
systemd-boot.editor = false;
};
boot.initrd.availableKernelModules = [
"ahci"
"rtsx_pci_sdmmc"

View file

@ -1,44 +0,0 @@
{ ulib, pkgs, upkgs, ... }: with ulib; merge
(systemPackages (with pkgs; [
asciinema
fastfetch
fd
hyperfine
moreutils
nix-index
nix-output-monitor
p7zip
pstree
strace
timg
tree
usbutils
yt-dlp
wine
clang_16
clang-tools_16
gh
go
jdk
lld
maven
upkgs.zig
vlang
]))
(graphicalPackages (with pkgs; [
qbittorrent
thunderbird
whatsapp-for-linux
xfce.thunar
krita
obs-studio
libreoffice
hunspellDicts.en_US
hunspellDicts.en_GB-ize
]))