Advertisement
Guest User

Untitled

a guest
Apr 19th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. ```nix
  2.  
  3. #### file configuration.nix ####
  4.  
  5. { config, pkgs, options, ... }:
  6. {
  7. programs.dconf.enable = true;
  8.  
  9. imports =
  10. [
  11. ./hardware-configuration.nix
  12. ./users
  13. ];
  14. ...
  15. }
  16.  
  17. #### file users/default.nix ####
  18.  
  19. { config, pkgs, options, ... }:
  20. let
  21. home-manager = builtins.fetchGit {
  22. url = "https://github.com/rycee/home-manager.git";
  23. ref = "release-19.09";
  24. };
  25. in {
  26.  
  27. imports =
  28. [
  29. (import "${home-manager}/nixos")
  30. ./joe.nix
  31. ];
  32.  
  33. }
  34.  
  35. #### file users/joe.nix ####
  36.  
  37. { config, lib, pkgs, options, ... }:
  38.  
  39. {
  40. # Define a user account. Don't forget to set a password with ‘passwd’.
  41. users.users.joe = {
  42. isNormalUser = true;
  43. home = "/home/joe";
  44. extraGroups = [
  45. "wheel" # Enable ‘sudo’ for the user by adding him to the wheel group
  46. "vboxsf"
  47. ];
  48. };
  49.  
  50. home-manager.users.joe = { pkgs, lib, ... }: {
  51. dconf.settings= {
  52. "org/gnome/calculator" = {
  53. button-mode = "programming";
  54. show-thousands = true;
  55. base = 10;
  56. word-size = 64;
  57. window-position = lib.hm.gvariant.mkTuple [100 100];
  58. };
  59. }
  60. };
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement