diff --git a/flake.nix b/flake.nix index 7e48c40..12042a2 100644 --- a/flake.nix +++ b/flake.nix @@ -52,10 +52,6 @@ homeManagerModules = import ./home-modules; nixosConfigurations = { - buutti = inputs.nixpkgs.lib.nixosSystem { - inherit specialArgs; - modules = [./hosts/buutti/configuration.nix]; - }; unikie = inputs.nixpkgs.lib.nixosSystem { inherit specialArgs; modules = [./hosts/unikie/configuration.nix]; diff --git a/hosts/buutti/configuration.nix b/hosts/buutti/configuration.nix deleted file mode 100644 index f036bd0..0000000 --- a/hosts/buutti/configuration.nix +++ /dev/null @@ -1,112 +0,0 @@ -{ - inputs, - outputs, - lib, - config, - pkgs, - ... -}: let - user = "joonas"; - system = "x86_64-linux"; -in { - imports = lib.flatten [ - (with outputs.nixosModules; [ - (common {inherit user pkgs outputs;}) - (syncthing {inherit user config lib;}) - (docker {inherit user;}) - laptop - bluetooth - gui - work-vpn - (bin {inherit inputs system;}) - ]) - (with inputs.nixos-hardware.nixosModules; [ - common-cpu-amd - common-cpu-amd-pstate - common-pc-ssd - common-gpu-amd - ]) - (import ./home.nix {inherit inputs outputs pkgs user;}) - ./hardware-configuration.nix - ]; - - boot = { - # zfs requires this - kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; - # force S3 sleep mode - kernelParams = ["mem_sleep_default=deep"]; - - loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; - }; - - networking = { - hostName = "buutti"; - hostId = "4d0256d9"; - }; - - services.syncthing = { - settings.folders = { - "code".enable = true; - "notes".enable = true; - "pictures".enable = true; - "work".enable = true; - }; - }; - - services.tailscale.enable = true; - - environment.systemPackages = lib.flatten [ - ( - with pkgs; [ - # languages and dev tools - python3 - pipenv - rustup - lua - nodejs - statix - - # apps - spotify - darktable - slack - pavucontrol - pcmanfm - obsidian - dwmblocks - gimp - firefox - chromium - - # cli tools - ffmpeg-full - slop - acpi - feh - fastfetch - wget - mons - file - bottom - xdotool - playerctl - pulseaudio - alsa-utils - pre-commit - wirelesstools - jq # json parser - fd # faster find - dig - rsync - glow # render markdown on the cli - xclip - - # libs - libnotify - ] - ) - ]; -} diff --git a/hosts/buutti/hardware-configuration.nix b/hosts/buutti/hardware-configuration.nix deleted file mode 100644 index 44c80cb..0000000 --- a/hosts/buutti/hardware-configuration.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ - config, - lib, - modulesPath, - ... -}: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot = { - initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "sd_mod"]; - initrd.kernelModules = []; - kernelModules = ["kvm-amd"]; - extraModulePackages = []; - }; - - fileSystems = { - "/" = { - device = "tank/root"; - fsType = "zfs"; - }; - - "/home" = { - device = "tank/home"; - fsType = "zfs"; - }; - - "/nix" = { - device = "tank/nix"; - fsType = "zfs"; - }; - - "/var" = { - device = "tank/var"; - fsType = "zfs"; - }; - - "/tmp" = { - device = "tank/tmp"; - fsType = "zfs"; - }; - - "/boot" = { - device = "/dev/disk/by-uuid/192A-CC58"; - fsType = "vfat"; - }; - }; - - swapDevices = []; - - networking.useDHCP = lib.mkDefault true; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/hosts/buutti/home.nix b/hosts/buutti/home.nix deleted file mode 100644 index 5f23419..0000000 --- a/hosts/buutti/home.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ - inputs, - outputs, - pkgs, - user, - ... -}: { - imports = [ - inputs.home-manager.nixosModules.home-manager - ]; - - home-manager.users."${user}" = { - imports = pkgs.lib.flatten [ - (with outputs.homeManagerModules; [ - (common {inherit pkgs user;}) - xresources - (neovim {inherit pkgs user;}) - zsh - wezterm - xinitrc - picom - git - ssh-personal - ssh-work - dunst - hidpi - rofi - discord - redshift - (flameshot {inherit user;}) - starship - imv - yazi - gtk - ]) - inputs.nixvim.homeManagerModules.nixvim - inputs.nix-index-database.hmModules.nix-index - ]; - }; -}