This commit is contained in:
2026-03-23 23:30:03 +09:00
parent 52d1d2db18
commit 12c8cc4d69
14 changed files with 346 additions and 59 deletions

View File

@@ -1,20 +1,109 @@
{ config, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../profiles/base.nix
# ../../profiles/desktop.nix
];
imports = [
./hardware-configuration.nix
../../profiles/base.nix
../../profiles/desktop.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.tmp.cleanOnBoot = true;
boot.binfmt.preferStaticEmulators = true;
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
environment.systemPackages = with pkgs; [
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
};
libvirtd = {
enable = true;
onBoot = "ignore";
onShutdown = "shutdown";
qemu = {
swtpm.enable = true;
};
};
spiceUSBRedirection.enable = true;
};
services.fprintd.enable = true;
services.xserver.windowManager.i3.enable = true;
services.desktopManager.gnome.enable = true;
services.gnome = {
core-apps.enable = false;
core-developer-tools.enable = false;
games.enable = false;
};
environment.gnome.excludePackages = with pkgs; [
gnome-tour
gnome-user-docs
];
services.flatpak.enable = true;
xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-xapp
kdePackages.xdg-desktop-portal-kde
];
fonts = {
fontDir.enable = true;
fontconfig = {
defaultFonts = {
emoji = [ "Noto Color Emoji" ];
monospace = [ "Moralerspace Argon" ];
sansSerif = [ "Noto Sans" ];
serif = [ "Noto Serif" ];
};
};
packages = with pkgs; [
nerd-fonts._0xproto
nerd-fonts.fira-code
moralerspace
gyre-fonts
ipafont
jigmo
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
corefonts
noto-fonts-color-emoji
];
};
programs.steam = {
enable = true;
#extest.enable = true;
fontPackages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
];
};
environment.systemPackages = (with pkgs; [
vim
tmux
];
saleae-logic-2
]) ++ (with pkgs.gnomeExtensions; [
kiwi-menu
blur-my-shell
forge
vibe-panel
dash-to-dock
]);
nixpkgs.config.allowUnfree = true;
networking.hostName = "wakugumi-hitoroku";
networking.firewall.enable = true;

View File

@@ -0,0 +1,33 @@
# 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 = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1d5bfff2-4819-489a-8533-b2e3070c4623";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/12CE-A600";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/cac5d442-525a-4918-ae64-11aa76192f91"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}