From 1cf993589c85670bd48a6f9703cb038aff2f65ff Mon Sep 17 00:00:00 2001 From: autumn Date: Mon, 25 Aug 2025 17:51:28 -0600 Subject: [PATCH] new user on laptop --- flake.nix | 8 +-- home-manager/ruby/home.nix | 67 +++++++++++++++++++ system/{nixos => yukigekko}/configuration.nix | 6 +- system/{nixos => yukigekko}/flake.nix | 0 .../hardware-configuration.nix | 0 5 files changed, 73 insertions(+), 8 deletions(-) create mode 100644 home-manager/ruby/home.nix rename system/{nixos => yukigekko}/configuration.nix (97%) rename system/{nixos => yukigekko}/flake.nix (100%) rename system/{nixos => yukigekko}/hardware-configuration.nix (100%) diff --git a/flake.nix b/flake.nix index f391545..0456df0 100644 --- a/flake.nix +++ b/flake.nix @@ -11,32 +11,30 @@ outputs = { self, nixpkgs, home-manager }@inputs: let - user = "autumn"; system = "x86_64-linux"; timezone = "America/Denver"; locale = "en_US.UTF-8"; specialArgs = { inherit inputs; - inherit user; inherit system; inherit timezone; inherit locale; }; in { - homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration { + homeConfigurations.ruby= home-manager.lib.homeManagerConfiguration { extraSpecialArgs = specialArgs; pkgs = nixpkgs.legacyPackages.${system}; modules = [ # ./home-manager/${user}/home.nix - ./home-manager/${user}/yukigekko-home.nix + ./home-manager/ruby/home.nix ]; }; nixosConfigurations."yukigekko" = nixpkgs.lib.nixosSystem{ specialArgs = specialArgs; modules = [ - ./system/nixos/configuration.nix + ./system/yukigekko/configuration.nix # home-manager.nixosModules.home-manager{ # home-manager = { # useGlobalPkgs = true; diff --git a/home-manager/ruby/home.nix b/home-manager/ruby/home.nix new file mode 100644 index 0000000..b4292e2 --- /dev/null +++ b/home-manager/ruby/home.nix @@ -0,0 +1,67 @@ +{ config, pkgs, ... }: + +{ + # Home Manager needs a bit of information about you and the paths it should + # manage. + home.username = "autumn"; + home.homeDirectory = "/home/autumn"; + home.stateVersion = "25.05"; # Please read the comment before changing. + + + programs.home-manager.enable = true; + + + nixpkgs.config = { + alowUnfree = true; + allowUnfreePredicate = (_: true); + }; + + home.packages = with pkgs; [ + neofetch + vscodium-fhs + nerd-fonts.hack + vesktop + obsidian + ccls + docker-language-server + nil + ty + rustc + rustup + htop + gnumake + python314Full + eza + gleam + ruff + ruby + vscode-extensions.castwide.solargraph + nim-2_0 + nimlangserver + ]; + programs.htop.enable = true; + programs.starship.enable = true; + programs.bash.initExtra = " + fish + "; + + wayland.windowManager.river.enable = true; + + + home.sessionVariables = { + EDITOR = "helix"; + TERM = "alacritty"; + }; + + imports = [ + ../packages/fish/fish.nix + ../packages/river/river.nix + ../packages/alacritty/alacritty.nix + ../packages/helix/helix.nix + ../packages/fuzzel/fuzzel.nix + ../packages/waybar/waybar.nix + ../packages/git/git.nix + ../packages/starship/starship.nix + ]; + +} diff --git a/system/nixos/configuration.nix b/system/yukigekko/configuration.nix similarity index 97% rename from system/nixos/configuration.nix rename to system/yukigekko/configuration.nix index 2fa5371..db2fa84 100644 --- a/system/nixos/configuration.nix +++ b/system/yukigekko/configuration.nix @@ -69,15 +69,15 @@ # services.xserver.libinput.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.autumn = { + users.users.ruby= { isNormalUser = true; - description = "Autumn"; + description = "Autumn on laptop"; extraGroups = [ "networkmanager" "wheel" ]; }; # Install firefox. programs.firefox.enable = true; - programs.bash.interactiveShellInit = "fish"; + # programs.bash.interactiveShellInit = "fish"; programs.appimage.enable = true; programs.openvpn3.enable = true; diff --git a/system/nixos/flake.nix b/system/yukigekko/flake.nix similarity index 100% rename from system/nixos/flake.nix rename to system/yukigekko/flake.nix diff --git a/system/nixos/hardware-configuration.nix b/system/yukigekko/hardware-configuration.nix similarity index 100% rename from system/nixos/hardware-configuration.nix rename to system/yukigekko/hardware-configuration.nix