From 1cc633bb678564cae7188f0e9762ca3d33ab0150 Mon Sep 17 00:00:00 2001 From: Emma Thorpe Date: Mon, 16 Jun 2025 14:44:08 +0000 Subject: [PATCH] feat: add initial suport for EDaaS setup at work --- emmathorpe/home.nix | 7 ++++++- flake.nix | 15 ++++++++++++++ system/machine/EDaaS/configuration.nix | 27 ++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 system/machine/EDaaS/configuration.nix diff --git a/emmathorpe/home.nix b/emmathorpe/home.nix index eada8b3..7b4da57 100644 --- a/emmathorpe/home.nix +++ b/emmathorpe/home.nix @@ -74,5 +74,10 @@ extraConfig = '' let g:indent_guides_enable_on_vim_startup = 1 ''; - }; + }; + programs.git = { + enable = true; + package = pkgs.gitFull; + userName = "Emma Thorpe"; + }; } diff --git a/flake.nix b/flake.nix index b0876c7..84fec83 100644 --- a/flake.nix +++ b/flake.nix @@ -38,5 +38,20 @@ } ]; }; + nixosConfigurations.emmathorpe-edaas = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./system/machine/EDaaS/configuration.nix + ./emmathorpe/user.nix + ./emmathorpe/swaywm.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.emmathorpe = import ./emmathorpe/home.nix; + } + ]; + }; }; } diff --git a/system/machine/EDaaS/configuration.nix b/system/machine/EDaaS/configuration.nix new file mode 100644 index 0000000..994b2fd --- /dev/null +++ b/system/machine/EDaaS/configuration.nix @@ -0,0 +1,27 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page, on +# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). + +# NixOS-WSL specific options are documented on the NixOS-WSL repository: +# https://github.com/nix-community/NixOS-WSL + +{ config, lib, pkgs, ... }: + +{ + imports = [ + # include NixOS-WSL modules + + ]; + + wsl.enable = true; + wsl.defaultUser = "emmathorpe"; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + features.swayDesktop.enable = false; + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It's perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "24.11"; # Did you read the comment? +}