add new host: fungus

This commit is contained in:
Keisuke Hirata 2025-02-21 19:56:38 +09:00
parent fd6281b9a0
commit 94dcf0a93c
5 changed files with 129 additions and 0 deletions

BIN
hosts/.default.nix.swp Normal file

Binary file not shown.

View File

@ -65,11 +65,24 @@ rec {
./arcadia/home-manager.nix ./arcadia/home-manager.nix
]; ];
}; };
fungus = mkHost {
system = "x86_64-linux";
hostname = "Fungus";
username = "hare";
systemModules = [
./fungus/nixos.nix
];
homeModule = [
./fungus/home-manager.nix
];
};
}; };
nixos = { nixos = {
arcadia = hosts.arcadia.nixos; arcadia = hosts.arcadia.nixos;
fungus = hosts.fungus.nixos;
}; };
home-manager = { home-manager = {
arcadia = hosts.arcadia.home-manager; arcadia = hosts.arcadia.home-manager;
fungus = hosts.fungus.home-manager;
}; };
} }

View File

@ -0,0 +1,32 @@
# 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 + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e4eb343c-d88f-4d63-99aa-c2c41d8580db";
fsType = "ext4";
};
swapDevices = [ ];
# 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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@ -0,0 +1,43 @@
{ conifg, pkgs, ... }:
{
imports = [
../../home-manager/hyprland.nix
../../home-manager/tofi.nix
../../home-manager/direnv.nix
];
home.packages = with pkgs; [
vscode
vivaldi
discord
helvum
obs-studio
superfile
plemoljp
plemoljp-nf
prismlauncher
scrcpy
tetrio-desktop
kicad
blender-hip
gimp
inkscape
obsidian
zed-editor
easyeffects
];
programs.git = {
enable = true;
userName = "Hare";
userEmail = "kei.hiracchi.0928@gmail.com";
};
fonts = {
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "PlemolJP NF Console" ];
};
};
};
}

41
hosts/fungus/nixos.nix Normal file
View File

@ -0,0 +1,41 @@
{
config,
pkgs,
username,
...
}:
{
system.stateVersion = "24.11";
imports = [
./hardware-configuration.nix
../../system/core
../../programs/ssh.nix
../../programs/utility.nix
../../programs/shell.nix
../../programs/docker.nix
];
environment.systemPackages = with pkgs; [
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
users.users.${username} = {
extraGroups = [
"docker"
];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
];
};
programs.nix-ld.enable = true;
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [
22
];
networking.firewall.allowedUDPPorts = [ ];
}