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

Add cube host

This commit is contained in:
RGBCube 2023-12-30 21:38:27 +03:00
parent 26b3c2ce92
commit 140e5dcd64
No known key found for this signature in database
16 changed files with 133 additions and 32 deletions

43
hosts/cube/default.nix Normal file
View file

@ -0,0 +1,43 @@
{ lib, ulib, ... }: with ulib; merge3
(systemConfiguration {
system.stateVersion = "23.05";
time.timeZone = "Europe/Amsterdam";
users.users.nixos = normalUser {
description = "NixOS";
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" ];
};
})
(homeConfiguration {
home.stateVersion = "23.11";
programs.git.extraConfig.commit.gpgSign = lib.mkForce false;
})
(importModules [
./hardware.nix
./packages.nix
"bat"
"btop"
"endlessh"
"git"
"helix"
"kernel"
"localisation"
"networkmanager"
"nix"
"nushell"
"openssh"
"pueue"
"python"
"ripgrep"
"rust"
"ssh"
"sudo"
"tmp"
])

25
hosts/cube/hardware.nix Normal file
View file

@ -0,0 +1,25 @@
{ ulib, modulesPath, ... }: with ulib;
systemConfiguration {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.loader.grub = enabled {
device = "/dev/vda";
useOSProber = true;
};
boot.initrd.availableKernelModules = [
"ata_piix"
"sr_mod"
"uhci_hcd"
"virtio_blk"
"virtio_pci"
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a14e3685-693a-4099-a2fe-ce959935dd50";
fsType = "ext4";
};
}

17
hosts/cube/packages.nix Normal file
View file

@ -0,0 +1,17 @@
{ 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

@ -3,6 +3,8 @@
(systemConfiguration {
system.stateVersion = "23.05";
time.timeZone = "Europe/Istanbul";
users.users.nixos = graphicalUser {
description = "NixOS";
extraGroups = [ "wheel" ];
@ -19,6 +21,7 @@
(importModules [
./hardware.nix
./packages.nix
"autofreq"
"bat"
@ -35,15 +38,14 @@
"gtk"
"helix"
"hyprland"
"kernel"
"kitty"
# "kmscon"
"localisation"
"logind"
"networkmanager"
"nix"
"nushell"
"openttd"
"packages"
"pipewire"
"pueue"
"python"
@ -52,8 +54,8 @@
"rust"
"ssh"
"steam"
"steck"
"sudo"
"tmp"
"w3m"
"waybar"
])

44
hosts/enka/packages.nix Normal file
View file

@ -0,0 +1,44 @@
{ 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
]))