diff --git a/hosts/.default.nix.swp b/hosts/.default.nix.swp new file mode 100644 index 0000000..2e28a49 Binary files /dev/null and b/hosts/.default.nix.swp differ diff --git a/hosts/default.nix b/hosts/default.nix index 37586ae..c30c9a6 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -65,11 +65,24 @@ rec { ./arcadia/home-manager.nix ]; }; + fungus = mkHost { + system = "x86_64-linux"; + hostname = "Fungus"; + username = "hare"; + systemModules = [ + ./fungus/nixos.nix + ]; + homeModule = [ + ./fungus/home-manager.nix + ]; + }; }; nixos = { arcadia = hosts.arcadia.nixos; + fungus = hosts.fungus.nixos; }; home-manager = { arcadia = hosts.arcadia.home-manager; + fungus = hosts.fungus.home-manager; }; } diff --git a/hosts/fungus/hardware-configuration.nix b/hosts/fungus/hardware-configuration.nix new file mode 100644 index 0000000..6234d6f --- /dev/null +++ b/hosts/fungus/hardware-configuration.nix @@ -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..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; +} diff --git a/hosts/fungus/home-manager.nix b/hosts/fungus/home-manager.nix new file mode 100644 index 0000000..2f414d2 --- /dev/null +++ b/hosts/fungus/home-manager.nix @@ -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" ]; + }; + }; + }; +} diff --git a/hosts/fungus/nixos.nix b/hosts/fungus/nixos.nix new file mode 100644 index 0000000..5925e48 --- /dev/null +++ b/hosts/fungus/nixos.nix @@ -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 = [ ]; +}