Advertisement
Guest User

Untitled

a guest
May 14th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. # Master configuration file
  2. { config, pkgs, ... }:
  3. let
  4. # Define user in ./username.nix
  5. # User should have corrsponding [user].nix file
  6. user = import ./user/username.nix;
  7. in
  8. {
  9. imports = [
  10. # User specific options
  11. ./user/${user}.nix
  12.  
  13. # Hardware specific configuration
  14. # ./system/workstation/gnome.nix
  15. ./system/workstation/hyprland.nix
  16. # ./system/laptop/configuration.nix # WIP
  17. # ./system/server/configuration.nix # WIP
  18. ];
  19.  
  20. nixpkgs.overlays = [
  21. (import ./overlays/discord.nix)
  22. (import ./overlays/electron.nix)
  23. (import ./overlays/waybar.nix)
  24. ];
  25.  
  26. networking.hostName = "nixos";
  27.  
  28. time.timeZone = "Europe/Berlin";
  29. i18n.defaultLocale = "en_US.utf8";
  30. i18n.extraLocaleSettings = {
  31. LC_ADDRESS = "de_DE.utf8";
  32. LC_IDENTIFICATION = "de_DE.utf8";
  33. LC_MEASUREMENT = "de_DE.utf8";
  34. LC_MONETARY = "de_DE.utf8";
  35. LC_NAME = "de_DE.utf8";
  36. LC_NUMERIC = "de_DE.utf8";
  37. LC_PAPER = "de_DE.utf8";
  38. LC_TELEPHONE = "de_DE.utf8";
  39. LC_TIME = "de_DE.utf8";
  40. };
  41.  
  42. # Allow unfree packages
  43. nixpkgs.config.allowUnfree = true;
  44.  
  45. # List packages installed in system profile. To search, run:
  46. # $ nix search wget
  47.  
  48. # Some programs need SUID wrappers, can be configured further or are
  49. # started in user sessions.
  50. programs.mtr.enable = true;
  51. programs.gnupg.agent = {
  52. enable = true;
  53. enableSSHSupport = true;
  54. };
  55.  
  56. # Enable the OpenSSH daemon.
  57. services.openssh.enable = true;
  58.  
  59. # Nix configuration
  60. nix = {
  61. autoOptimiseStore = true;
  62. extraOptions = ''
  63. experimental-features = nix-command flakes
  64. '';
  65. gc = {
  66. automatic = true;
  67. dates = "weekly";
  68. options = "--delete-older-than 7d";
  69. };
  70. };
  71.  
  72. # Enable automatic updates
  73. system.autoUpgrade = {
  74. enable = true;
  75. channel = "https://nixos.org/channels/nixos";
  76. };
  77.  
  78. # System version
  79. system.stateVersion = "22.05";
  80.  
  81. environment.systemPackages = with pkgs; [
  82. nix-diff
  83. ];
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement