From 945b82466ad55db0c48f5a16d9e240eb9174162e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 18 Aug 2023 08:46:05 +0000 Subject: [PATCH] one second --- hosts/sakowsl/configuration.nix | 58 +++++++++++++++++---------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/hosts/sakowsl/configuration.nix b/hosts/sakowsl/configuration.nix index 2d4b2bbe..763ce2cd 100644 --- a/hosts/sakowsl/configuration.nix +++ b/hosts/sakowsl/configuration.nix @@ -1,13 +1,19 @@ -{ lib, pkgs, config, modulesPath, inputs, outputs, ... }: - { + lib, + pkgs, + config, + modulesPath, + inputs, + outputs, + ... +}: { imports = [ - inputs.home-manager.nixosModules.default - "${modulesPath}/profiles/minimal.nix" - outputs.nixosModules.shell - outputs.nixosModules.hardware - outputs.nixosModules.dev - outputs.nixosModules.media + inputs.home-manager.nixosModules.default + "${modulesPath}/profiles/minimal.nix" + outputs.nixosModules.shell + outputs.nixosModules.hardware + outputs.nixosModules.dev + outputs.nixosModules.media ]; wsl = { @@ -24,7 +30,6 @@ # Enable integration with Docker Desktop (needs to be installed) # docker-desktop.enable = true; - }; users.users.sako.isNormalUser = true; @@ -36,19 +41,16 @@ nix.extraOptions = '' experimental-features = nix-command flakes ''; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = ["nix-command" "flakes"]; # Home manager setup home-manager.useUserPackages = true; - home-manager.users.sako = { pkgs, ... }: { - home.stateVersion = "22.05"; - home.packages = []; - home.username = "sako"; - home.homeDirectory = "/home/sako"; - xdg.configFile.git = { - source = ../../config/git; - }; -}; + home-manager.users.sako = {pkgs, ...}: { + home.stateVersion = "22.05"; + home.packages = []; + home.username = "sako"; + home.homeDirectory = "/home/sako"; + }; # bare minimum environment.systemPackages = with pkgs; [ @@ -77,15 +79,15 @@ modules = { dev = { - editors = { - nvim.enable = true; - }; - cc.enable = true; - nil.enable = true; - python.enable = true; - rust.enable = true; - javascript.enable = true; - }; + editors = { + nvim.enable = true; + }; + cc.enable = true; + nil.enable = true; + python.enable = true; + rust.enable = true; + javascript.enable = true; + }; shell = { zsh.enable = true; tmux.enable = true;