diff options
author | NotAShelf <itsashelf@gmail.com> | 2023-04-25 23:10:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 21:10:57 +0100 |
commit | 243a9339f041f62c1b5d8c05b415b126349c95b5 (patch) | |
tree | 315d2fafb2ed592e13ebd299f31fcd5d74e2127e /homes | |
parent | 4b0c88736979fe2cb8e98e8e0ae12caf7e876141 (diff) |
reflopactor (#1)
Diffstat (limited to 'homes')
-rw-r--r-- | homes/default.nix | 19 | ||||
-rw-r--r-- | homes/floppydisk/default.nix | 47 |
2 files changed, 66 insertions, 0 deletions
diff --git a/homes/default.nix b/homes/default.nix new file mode 100644 index 0000000..267a3d0 --- /dev/null +++ b/homes/default.nix @@ -0,0 +1,19 @@ +{ + inputs, + self, + outputs, + ... +}: { + home-manager = { + useUserPackages = true; + useGlobalPkgs = true; + extraSpecialArgs = { + inherit inputs self outputs; + }; + users = { + # TODO: "base" user that will be used by default is there is no defined + # home directory for the user + floppydisk = ./floppydisk; + }; + }; +} diff --git a/homes/floppydisk/default.nix b/homes/floppydisk/default.nix new file mode 100644 index 0000000..89363cc --- /dev/null +++ b/homes/floppydisk/default.nix @@ -0,0 +1,47 @@ +# This is your home-manager configuration file +# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) +{ + outputs, + pkgs, + ... +}: { + # You can import other home-manager modules here + imports = [ + # If you want to use modules your own flake exports (from modules/home-manager): + # outputs.homeManagerModules.example + + # Or modules exported from other flakes (such as nix-colors): + # inputs.nix-colors.homeManagerModules.default + + # You can also split up your configuration and import pieces of it here: + # ./nvim.nix + ]; + + home = { + username = "floppydisk"; + homeDirectory = "/home/floppydisk"; + packages = with pkgs; [steam vscode _1password-gui _1password neofetch microsoft-edge webcord-vencord]; + }; + + # Add stuff for your user as you see fit: + programs = { + # Enable neovim + neovim.enable = true; + + # Enable home-manager + home-manager.enable = true; + + # enable git and configure users + git = { + enable = true; + userName = "Frankie B."; + userEmail = "git@diskfloppy.me"; + }; + }; + + # Nicely reload system units when changing configs + systemd.user.startServices = "sd-switch"; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + home.stateVersion = "22.11"; +} |