From 18b14dfb3857d0333d395ba8d5a4bcd00c92c74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Mon, 11 Nov 2024 19:20:17 +0100 Subject: [PATCH] removed work-ntb and useless programs --- hosts/base/default.nix | 3 -- hosts/lenar/default.nix | 6 +-- hosts/wenar-nix/default.nix | 7 +-- hosts/wenar-nix/home.nix | 6 +++ hosts/work-ntb/default.nix | 32 -------------- hosts/work-ntb/hardware-configuration.nix | 54 ----------------------- 6 files changed, 10 insertions(+), 98 deletions(-) create mode 100644 hosts/wenar-nix/home.nix delete mode 100644 hosts/work-ntb/default.nix delete mode 100644 hosts/work-ntb/hardware-configuration.nix diff --git a/hosts/base/default.nix b/hosts/base/default.nix index f342b4c..3f114ef 100644 --- a/hosts/base/default.nix +++ b/hosts/base/default.nix @@ -76,9 +76,6 @@ # List packages installed in system profile. To search, run: # $ nix search wget programs = { - tmux.enable = true; - zsh.enable = true; - git.enable = true; dconf.enable = true; thunderbird.enable = true; firefox.enable = true; diff --git a/hosts/lenar/default.nix b/hosts/lenar/default.nix index 11b23b0..486950c 100644 --- a/hosts/lenar/default.nix +++ b/hosts/lenar/default.nix @@ -6,7 +6,6 @@ }: { imports = [ - # Include the results of the hardware scan. ./hardware-configuration.nix inputs.disko.nixosModules.disko inputs.nixos-hardware.nixosModules.common-cpu-intel @@ -14,8 +13,9 @@ ]; zramSwap.enable = true; - boot.kernelPackages = pkgs.linuxPackages_latest; + networking.hostName = "lenar"; + services.power-profiles-daemon.enable = false; services.tlp = { enable = true; @@ -24,8 +24,6 @@ }; }; - networking.hostName = "lenar"; # Define your hostname. - # My own modules configuration krop = { audio = { diff --git a/hosts/wenar-nix/default.nix b/hosts/wenar-nix/default.nix index a6f4b6f..2bdb56c 100644 --- a/hosts/wenar-nix/default.nix +++ b/hosts/wenar-nix/default.nix @@ -6,7 +6,6 @@ }: { imports = [ - # Include the results of the hardware scan. ./hardware-configuration.nix inputs.disko.nixosModules.disko inputs.nixos-hardware.nixosModules.common-cpu-intel @@ -14,10 +13,8 @@ ]; zramSwap.enable = true; - boot.kernelPackages = pkgs.linuxPackages_latest; - - networking.hostName = "wenar-nix"; # Define your hostname. + networking.hostName = "wenar-nix"; # My own modules configuration krop = { @@ -53,7 +50,7 @@ inherit inputs; }; users = { - "krop" = import ../../users/krop; + "krop" = import ./home.nix; }; }; } diff --git a/hosts/wenar-nix/home.nix b/hosts/wenar-nix/home.nix new file mode 100644 index 0000000..eb7c030 --- /dev/null +++ b/hosts/wenar-nix/home.nix @@ -0,0 +1,6 @@ +{ config, pkgs, ... }: +{ + home.username = "krop"; + home.homeDirectory = "/home/krop"; + home.stateVersion = "24.05"; +} diff --git a/hosts/work-ntb/default.nix b/hosts/work-ntb/default.nix deleted file mode 100644 index b416e65..0000000 --- a/hosts/work-ntb/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ - config, - pkgs, - inputs, - ... -}: -{ - imports = [ - # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; - - networking.hostName = "work-ntb"; # Define your hostname. - - # My own modules configuration - krop = { - ide = { - enable = true; - install-pycharm = true; - }; - python.install-additional = true; - }; - - home-manager = { - extraSpecialArgs = { - inherit inputs; - }; - users = { - "krop" = import ../../users/krop; - }; - }; -} diff --git a/hosts/work-ntb/hardware-configuration.nix b/hosts/work-ntb/hardware-configuration.nix deleted file mode 100644 index 6d29069..0000000 --- a/hosts/work-ntb/hardware-configuration.nix +++ /dev/null @@ -1,54 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ - config, - lib, - pkgs, - modulesPath, - ... -}: - -{ - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ - "xhci_pci" - "ahci" - "usb_storage" - "sd_mod" - "rtsx_pci_sdmmc" - ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/360cfb7a-07d9-445b-83e2-6ef19bd55948"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/5F8E-3C09"; - fsType = "vfat"; - options = [ - "fmask=0077" - "dmask=0077" - ]; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.eno2.useDHCP = lib.mkDefault true; - # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}