diff --git a/flake.nix b/flake.nix index db13ee7..e0e9f72 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,7 @@ ./nixos/machines/tides/machine.nix ./home-manager/machines/wsl/home.nix ./home-manager/machines/crash/home.nix + ./home-manager/machines/tides/home.nix ./devshells/rust.nix ./devshells/idris2.nix ./devshells/raku.nix diff --git a/home-manager/machines/tides/home.nix b/home-manager/machines/tides/home.nix new file mode 100644 index 0000000..b606199 --- /dev/null +++ b/home-manager/machines/tides/home.nix @@ -0,0 +1,54 @@ +{ + withSystem, + inputs, + ... +}: { + # perSystem = { ... }: { config.packages.hello = ...; }; + + flake.homeConfigurations.tides = withSystem "tides-linux" ( + ctx @ { + config, + inputs', + ... + }: + inputs.home-manager.lib.homeManagerConfiguration { + pkgs = inputs.nixpkgs.legacyPackages.${"x86_64-linux"}; + extraSpecialArgs = { + inherit inputs inputs'; + packages = config.packages; + }; + modules = [ + ( + { + config, + lib, + pkgs, + ... + }: { + imports = [ + ../../modules/programs/shell.nix + ../../modules/programs/neovim.nix + (import ../../modules/programs/git.nix {}) + ../../modules/programs/core.nix + ../../modules/programs/ssh.nix + ]; + home.username = "nathan"; + home.homeDirectory = "/home/nathan/"; + programs.command-not-found.enable = true; + home.stateVersion = "24.11"; + programs.home-manager.enable = true; + + # Allow unfree packages + nixpkgs.config.allowUnfree = true; + + # Machine specific configuration + services.emacs.defaultEditor = true; + + home.packages = with pkgs; [ + ]; + } + ) + ]; + } + ); +} diff --git a/nixos/machines/tides/hardware.nix b/nixos/machines/tides/hardware.nix index 3d4f269..d5fb194 100644 --- a/nixos/machines/tides/hardware.nix +++ b/nixos/machines/tides/hardware.nix @@ -1,30 +1,34 @@ # 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 + "/profiles/qemu-guest.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_scsi" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["xhci_pci" "virtio_scsi"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/ebde67a3-7bb8-4453-953b-897440b1ced5"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/ebde67a3-7bb8-4453-953b-897440b1ced5"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/9119-BB6A"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/9119-BB6A"; + fsType = "vfat"; + options = ["fmask=0022" "dmask=0022"]; + }; - swapDevices = [ ]; + 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 diff --git a/nixos/machines/tides/machine.nix b/nixos/machines/tides/machine.nix index ce39405..3488064 100644 --- a/nixos/machines/tides/machine.nix +++ b/nixos/machines/tides/machine.nix @@ -5,7 +5,7 @@ }: { # perSystem = { ... }: { config.packages.hello = ...; }; - flake.nixosConfigurations.crash = withSystem "aarch64-linux" ( + flake.nixosConfigurations.tides = withSystem "aarch64-linux" ( ctx @ { config, inputs', diff --git a/nixos/modules/base.nix b/nixos/modules/base.nix index ad927e1..dcd7a4f 100644 --- a/nixos/modules/base.nix +++ b/nixos/modules/base.nix @@ -21,6 +21,7 @@ nix-index curl wget + just ]; system.stateVersion = "24.11";