From 1c63d52218b8b54194e410fcffe35885f4df471c Mon Sep 17 00:00:00 2001 From: earnest ma Date: Mon, 23 Aug 2021 15:06:31 -0400 Subject: [PATCH] remove home-manager files --- .config/nixpkgs/graphical.nix | 20 --------------- .config/nixpkgs/home.nix | 47 ----------------------------------- .config/nixpkgs/hostname.nix | 21 ---------------- 3 files changed, 88 deletions(-) delete mode 100644 .config/nixpkgs/graphical.nix delete mode 100644 .config/nixpkgs/home.nix delete mode 100644 .config/nixpkgs/hostname.nix diff --git a/.config/nixpkgs/graphical.nix b/.config/nixpkgs/graphical.nix deleted file mode 100644 index 9e57f9c..0000000 --- a/.config/nixpkgs/graphical.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ pkgs, ... }: - -let - pkgsUnstable = import {}; -in -{ - home.packages = with pkgs; [ - authy - barrier - pkgsUnstable.discord - google-chrome - todoist-electron - pkgsUnstable.zoom-us - - pkgsUnstable.logseq - sublime-music - - alacritty - ]; -} diff --git a/.config/nixpkgs/home.nix b/.config/nixpkgs/home.nix deleted file mode 100644 index 6c649f0..0000000 --- a/.config/nixpkgs/home.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ config, pkgs, lib, ... }: - -let - inherit (lib) optionals; - hostName = import ./hostname.nix lib; - # Be able to use unstable packages - pkgsUnstable = import {}; - -in -{ # Required - programs.home-manager.enable = true; - home.username = "earne"; - home.homeDirectory = "/home/earne"; - - imports = - (optionals (hostName == "tycho") [ - ./graphical.nix - ]); - - home.packages = with pkgs; [ - # Doom Emacs + dependencies - pkgsUnstable.fd - pkgsUnstable.ripgrep - pkgsUnstable.emacs - - aerc - isync - khard - - gitFull - git-extras - ghq - pkgsUnstable.neovim - tmux - yadm - ]; - - # This value determines the Home Manager release that your - # configuration is compatible with. This helps avoid breakage - # when a new Home Manager release introduces backwards - # incompatible changes. - # - # You can update Home Manager without changing this value. See - # the Home Manager release notes for a list of state version - # changes in each release. - home.stateVersion = "21.05"; -} diff --git a/.config/nixpkgs/hostname.nix b/.config/nixpkgs/hostname.nix deleted file mode 100644 index 849aef4..0000000 --- a/.config/nixpkgs/hostname.nix +++ /dev/null @@ -1,21 +0,0 @@ -lib: - -let - - inherit (builtins) currentSystem; - inherit (lib) maybeEnv fileContents; - inherit (lib.systems.elaborate { system = currentSystem; }) isLinux isDarwin; - -in - -maybeEnv "HOST" (fileContents ( - if !isDarwin then - /etc/hostname - else - derivation { - name = "hostname"; - system = currentSystem; - builder = "/bin/sh"; - args = [ "-c" "/usr/sbin/scutil --get LocalHostName > $out" ]; - } -))