diff --git a/configuration.nix b/configuration.nix index bf376f3..5ee906f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -3,32 +3,10 @@ imports = [ ./hardware-configuration.nix ./firewall.nix + ./userprogs.nix ./sourcehut.nix ]; - programs.git = { - enable = true; - config = { - user = { - email = "khais.colin@gmail.com"; - name = "Khaïs COLIN"; - }; - core.editor = "nvim"; - }; - }; - - programs.neovim = { - enable = true; - defaultEditor = true; - vimAlias = true; - viAlias = true; - configure = { - customRC = '' - set modeline - ''; - }; - }; - boot.tmp.cleanOnBoot = true; zramSwap.enable = true; networking.hostName = "quasar"; diff --git a/userprogs.nix b/userprogs.nix new file mode 100644 index 0000000..493d78f --- /dev/null +++ b/userprogs.nix @@ -0,0 +1,24 @@ +{ + programs.git = { + enable = true; + config = { + user = { + email = "khais.colin@gmail.com"; + name = "Khaïs COLIN"; + }; + core.editor = "nvim"; + }; + }; + + programs.neovim = { + enable = true; + defaultEditor = true; + vimAlias = true; + viAlias = true; + configure = { + customRC = '' + set modeline + ''; + }; + }; +}