From c893f689aac70f238aa794eb1c44d9efd87f9e84 Mon Sep 17 00:00:00 2001 From: nixos Date: Wed, 30 Aug 2023 19:32:53 +0200 Subject: [PATCH] clean up configuration --- .configuration.nix.swp | Bin 0 -> 20480 bytes configuration.nix | 154 +++++++++++++---------------------------- 2 files changed, 49 insertions(+), 105 deletions(-) create mode 100644 .configuration.nix.swp diff --git a/.configuration.nix.swp b/.configuration.nix.swp new file mode 100644 index 0000000000000000000000000000000000000000..45f8dd59ccf9c54d5a78adc4b398a891ddb35c26 GIT binary patch literal 20480 zcmeI3ZEPGz8OJA0p}e$d2t{cn3KJVdB7EyORYPI}rHvD?WV>z>m$sqMx!t+DmG_O= z-Pk5I1k?g`1@ucLDn!+Q1Qmi*h%fY0p;ARzkjU_g}4Td3Hc*<3H%H^1;>0=*Ki%b z2j{>q!7soQ;8E~7a2NO}kk@-Nm<2On8e9&}K#P-LC%78C`bI)t1doA7!DqoqFb-aM z10m0XRd5Tq7X0}#LY@QTIWL)pzMxES zS#Rzgw}tPys2A!8mj+)lo!H`Y%v?ZqL)3QBj#@NWXoeH?7)^|7ksph6*WiI2w3xS? z9X2@=%k<6(=^TG4wtD0T$xhRbl3z0xPO`Ju9viy{gJ zqA+2$Xy$2{PTOHb166t3gNTlkikP~Tnl)^P8}z83BndfI_Z1wiKKVPL?c<-2sQx=!$n_MX}h2r$q5S;G18uh zLXO)e4~-?c$A#h8b=wQ#sH~G^SAzyMTLH6Z7zcqbBDyo}kQTLggT+oHd!g$?TZ@Ma zXwVtvp?ip3S(z;+tVQ%GBZwU|No?7ES!p3I%qmOBs*$F5T}B{mFS5O6k9-H_=Z;8) z5>smVW-NO&?i94fFm&q@WND#(b07n$Wb+R3Soopc^v3y!$%1g4hxp+`=^eZ#ufvx8 zSl+}#ahTa0$YQfNUEs?u3#3-Jjg1vLl)6uihAnu*U+TV;q|?ZblXtDuprG4Ti7Ph9mh~vp7HB|lkKjfB3zj8|ompl1Y z<~!}W_e+;@3}Pei@j>m1kNiH>t7wg$msFKUR__8cw%c)V9~WQP;AOR+m@-dize`T! zEuZhSyFj8>Vx`o{jq;r?>#p~<%$%F%I~6C@jaHT^&ztX*7cBE8TfuJ4@ybMIR9-n% zkLvEyZuKeYDK9JEDX*Lw&7`FloM0$(k#16#8&Z|-rx8)U(+aDHRCYRjGUDV3`H+@d zL4?9CrAM?Smj^9k4_o+Qnm`Y)m)tORPDRsd-v(=dxamC^KF*N!?9 zEtP25jYemZ>8mue#mxo0pgPk7l^n!jXLVY5m&-&sNGs$CTikJObZmw}Cz9oWHQh?( ztmBQ4SY>7vZ@JV1bC@aYC|WLkG0_$Vp*1%hU6fgXYNv2Ubt@gK~3oH43Kpfxq$ zX-CS-es>IpwkwCW=+EQ?u|1q9_7Hh3d#*EfUylkpn3j+e+01FAqg9EV|DVRZ{Vb64 ze@rKn?HrDO1D?y$?!&K~8SoHjfJ5LQ z*a0p9o4{Gjw|@Df`$?Aj8(Nu6uOL|{v@eYSjd8UxUgR1gmhT34Cg=ZKF^9hg$oapD?|%(*{a=A6!S}$oz$x$uSOuR1 zhrtY(2IJsrumx-e@;kxH;6?B}SOxb2S3}Po#0Zi89aq= z1>Xc;00PW|>%n#)*Y|%89tWQS%fJKg2Aco@|HL}}OW>#AC*a566j%W*FbAfG3615gQ zoJXFi$hHc@s_Z2`t2|V@=vB1}Z!$||w(6wn6j7N}RgOBJWn6#$EDWcrIVv4yE2nw6 zsv>KH7Asw#*?I|>2RrsMs&uYac8#`0doPK`scgBt;2u$y1z(*JI~V0u#co!3&u*07 zsm$$}UYbbqrRB9@o4wLhNar9nRbiinb?vo ]; - # Use the GRUB 2 boot loader. - # boot.loader.grub.enable = true; - # boot.loader.grub.efiSupport = true; - # boot.loader.grub.efiInstallAsRemovable = true; - # boot.loader.efi.efiSysMountPoint = "/boot/efi"; - # Define on which hard drive you want to install Grub. - # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only boot.loader.systemd-boot.enable = true; + networking.hostName = "x260"; + time.timeZone = "Europe/Amsterdam"; + i18n.defaultLocale = "nl_NL.UTF-8"; - # networking.hostName = "nixos"; # Define your hostname. - # Pick only one of the below networking options. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. - - # Set your time zone. - # time.timeZone = "Europe/Amsterdam"; - - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - - # Select internationalisation properties. - # i18n.defaultLocale = "en_US.UTF-8"; - # console = { - # font = "Lat2-Terminus16"; - # keyMap = "us"; - # useXkbConfig = true; # use xkbOptions in tty. - # }; - - # Enable the X11 windowing system. services.xserver = { enable = true; displayManager.gdm.enable = true; @@ -49,92 +23,62 @@ }; home-manager.users.pim = { pkgs, ... }: { - programs.home-manager.enable = true; - programs.bash = { - enable = true; - shellAliases = { - htop = "btop"; - }; + home = { + username = "pim"; + homeDirectory = "/home/pim"; + stateVersion = stateVersion; }; - home.username = "pim"; - home.homeDirectory = "/home/pim"; - home.stateVersion = "23.05"; - home.packages = with pkgs; [ firefox ]; + programs = { + home-manager.enable = true; + alacritty.enable = true; + firefox.enable = true; + + bash = { + enable = true; + shellAliases = { + htop = "btop"; + gp = "git push"; + gco = "git checkout"; + gd = "git diff"; + gc = "git commit"; + gpl = "git pull"; + gb = "git branch"; + ga = "git add"; + gl = "git log"; + }; + }; + + direnv = { + enable = true; + enableBashIntegration = true; + nix-direnv.enable = true; + }; + }; # Let home-manager manage the X session xsession = { enable = true; }; - - programs.alacritty = { - enable = true; - }; }; - # Configure keymap in X11 - # services.xserver.layout = "us"; - # services.xserver.xkbOptions = "eurosign:e,caps:escape"; - - # Enable CUPS to print documents. - # services.printing.enable = true; - - # Enable sound. - # sound.enable = true; - # hardware.pulseaudio.enable = true; - - # Enable touchpad support (enabled default in most desktopManager). - # services.xserver.libinput.enable = true; - - # Define a user account. Don't forget to set a password with ‘passwd’. users.users.pim = { isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" ]; }; - # List packages installed in system profile. To search, run: - # $ nix search wget - environment.systemPackages = with pkgs; [ - vim - wget - curl - git - btop - ]; + environment = { + systemPackages = with pkgs; [ + vim + wget + curl + git + btop + ]; + gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary ]; + }; - environment.gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary ]; - - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; - - # List services that you want to enable: - - # Enable the OpenSSH daemon. - # services.openssh.enable = true; - - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; - - # Copy the NixOS configuration file and link it from the resulting system - # (/run/current-system/configuration.nix). This is useful in case you - # accidentally delete configuration.nix. - # system.copySystemConfiguration = true; - - # 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 = "23.05"; # Did you read the comment? + system.stateVersion = stateVersion; }