Compare commits

...

2 Commits

Author SHA1 Message Date
a5197e2e8a Added hardware config for ichigo 2025-05-21 01:59:14 -04:00
980ccf27c1 Added config for ichigo desktop PC 2025-05-21 01:58:07 -04:00
4 changed files with 102 additions and 18 deletions

View File

@@ -97,6 +97,16 @@
fcitx5.waylandFrontend = true; fcitx5.waylandFrontend = true;
}; };
# Fonts
fonts.packages = with pkgs; [
ibm-plex
liberation_ttf
nerd-fonts.blex-mono
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
];
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
@@ -184,7 +194,8 @@
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
bitwarden-cli bitwarden-cli
bitwarden-desktop bitwarden-desktop
cifs-utils
emacs-pgtk emacs-pgtk
firefoxpwa firefoxpwa
gcc gcc

View File

@@ -19,23 +19,38 @@
# Please replace my-nixos with your hostname # Please replace my-nixos with your hostname
nixosConfigurations = { nixosConfigurations = {
anzu = nixpkgs.lib.nixosSystem { anzu = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
# Import the previous configuration.nix we used,
# so the old configuration file still takes effect
./configuration.nix
./hosts/anzu/hardware-configuration.nix
# Add NUR overlay
nur.modules.nixos.default
# Add home-manager
home-manager.nixosModules.home-manager
{
home-manager.backupFileExtension = "backup";
home-manager.useGlobalPkgs = true;
home-manager.users.chase = ./home.nix;
}
];
};
ichigo = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
# Import the previous configuration.nix we used, ./configuration.nix
# so the old configuration file still takes effect ./hosts/ichigo/hardware-configuration.nix
./configuration.nix nur.modules.nixos.default
./hosts/anzu/hardware-configuration.nix home-manager.nixosModules.home-manager
# Add NUR overlay {
nur.modules.nixos.default home-manager.backupFileExtension = "backup";
# Add home-manager home-manager.useGlobalPkgs = true;
home-manager.nixosModules.home-manager home-manager.users.chase = ./home.nix;
{ }
home-manager.backupFileExtension = "backup"; ];
home-manager.useGlobalPkgs = true;
home-manager.users.chase = ./home.nix;
}
];
}; };
}; };
}; };

View File

@@ -49,7 +49,7 @@
modules = [ modules = [
"title" "title"
"separator" "separator"
"os" "os"
"host" "host"
"uptime" "uptime"
"kernel" "kernel"

View File

@@ -0,0 +1,58 @@
# 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")
];
### this machine ###
networking.hostName = "ichigo";
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d248b616-bdb7-463d-94a6-9718de8dc85a";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-d90b3a3d-bb12-4a29-a2b4-99487f0ff1ca".device = "/dev/disk/by-uuid/d90b3a3d-bb12-4a29-a2b4-99487f0ff1ca";
boot.initrd.luks.devices."luks-877310a4-b495-4060-9ee6-e7a841862f22".device = "/dev/disk/by-uuid/877310a4-b495-4060-9ee6-e7a841862f22";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/AA5A-18AD";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/752114b2-c304-4670-aba8-7288954605bc"; }
];
# Mount SMB share
fileSystems."/mnt/share" = {
device = "//haruko/share";
fsType = "cifs";
options = let
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,user,users";
in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100"];
};
# 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.enp6s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}