From d23c70e2a22996de0a741ab42cc6f9ba76b9e571 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 23 Jul 2023 16:53:16 +0200 Subject: [PATCH] feat: big cleanup --- capibara.nix | 5 +- nixos/common.nix => common.nix | 2 +- echidna.nix | 157 ------------------ flake.lock | 22 --- flake.nix | 19 +-- grub_background.png | Bin 10659 -> 0 bytes .../capibara.nix | 0 .../trantor.nix | 0 home/barrier/default.nix | 1 - home/capibara.nix | 5 +- home/{nixos-common.nix => common.nix} | 2 +- home/echidna.nix | 10 -- home/ssh/default.nix | 1 - home/trantor.nix | 2 +- macos/choose-pass.nix | 18 -- macos/desktop.nix | 131 --------------- trantor.nix | 2 +- 17 files changed, 16 insertions(+), 361 deletions(-) rename nixos/common.nix => common.nix (99%) delete mode 100644 echidna.nix delete mode 100644 grub_background.png rename {nixos/hardware-configuration => hardware-configuration}/capibara.nix (100%) rename {nixos/hardware-configuration => hardware-configuration}/trantor.nix (100%) rename home/{nixos-common.nix => common.nix} (99%) delete mode 100644 home/echidna.nix delete mode 100644 macos/choose-pass.nix delete mode 100644 macos/desktop.nix diff --git a/capibara.nix b/capibara.nix index 1348391..70557b7 100644 --- a/capibara.nix +++ b/capibara.nix @@ -22,8 +22,9 @@ let "$@" ''; -in { - imports = [ ./nixos/hardware-configuration/capibara.nix ./nixos/common.nix ]; +in +{ + imports = [ ./hardware-configuration/capibara.nix ./common.nix ]; home-manager = { users.rilla.imports = diff --git a/nixos/common.nix b/common.nix similarity index 99% rename from nixos/common.nix rename to common.nix index 8e1957c..d7c2f90 100644 --- a/nixos/common.nix +++ b/common.nix @@ -229,7 +229,7 @@ }]; knownHosts = { - "*.monotremata.xyz,10.*,narwhal,suricata,pikvm,caladan,fugu,snitch,trantor,capibara,axolotl,echidna" = + "*.monotremata.xyz,10.*,narwhal,suricata,pikvm,caladan,fugu,snitch,trantor,capibara,axolotl" = { certAuthority = true; publicKey = diff --git a/echidna.nix b/echidna.nix deleted file mode 100644 index f259e8b..0000000 --- a/echidna.nix +++ /dev/null @@ -1,157 +0,0 @@ -{ config, pkgs, ... }: - -let - choose-pass = - pkgs.callPackage ./macos/choose-pass.nix { inherit config pkgs; }; -in { - nix.extraOptions = '' - experimental-features = nix-command flakes - ''; - - # nixpkgs.config.permittedInsecurePackages = [ "python-2.7.18.6" ]; - - # List packages installed in system profile. To search by name, run: - # $ nix-env -qaP | grep wget - # environment.systemPackages = [ ]; - environment.systemPackages = [ - (pkgs.pass.withExtensions (exts: [ exts.pass-otp ])) - choose-pass - # pkgs.khal - pkgs.alacritty - pkgs.gopass - pkgs.ansible - pkgs.bat - pkgs.black - pkgs.cheat - pkgs.cmatrix - pkgs.colima - pkgs.coreutils-full - pkgs.csvkit - pkgs.curl - pkgs.diff-so-fancy - pkgs.docker-client - pkgs.docker-machine - pkgs.exa - pkgs.fzf - pkgs.getopt - pkgs.gnupg - pkgs.go - pkgs.google-cloud-sdk - pkgs.gping - pkgs.hlint - pkgs.htop - pkgs.imagemagick - pkgs.jq - pkgs.khard - pkgs.libmysqlclient.dev - pkgs.mosh - pkgs.mpc-cli - pkgs.ncmpcpp - pkgs.neofetch - pkgs.neomutt - pkgs.newsboat - pkgs.nixfmt - pkgs.nodePackages.pyright - pkgs.python310Packages.python-lsp-server - # pkgs.python310Packages.pylsp-mypy - pkgs.openssh - pkgs.pinentry_mac - pkgs.pipenv - pkgs.python310Full - pkgs.python310Packages.pip - pkgs.python310Packages.virtualenvwrapper - # pkgs.pythonFull - pkgs.ripgrep - pkgs.shellcheck - pkgs.shfmt - pkgs.sqlfluff - pkgs.starship - pkgs.stow - pkgs.terraform - pkgs.tmux - pkgs.tree - pkgs.urlscan - pkgs.vagrant - pkgs.vdirsyncer - pkgs.virtualenv - pkgs.wget - pkgs.wireguard-go - pkgs.wireguard-tools - pkgs.yubikey-personalization - pkgs.zsh - ]; - # Use a custom configuration.nix location. - # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix - environment.darwinConfig = "/Users/rilla/configs/nix-config/echidna.nix"; - # environment.variables.DOCKER_HOST = "tcp://localhost:2375"; - - # Auto upgrade nix package and the daemon service. - services.nix-daemon.enable = true; - # nix.package = pkgs.nix; - - # Create /etc/bashrc that loads the nix-darwin environment. - programs.zsh.enable = true; # default shell on catalina - # programs.fish.enable = true; - - # Used for backwards compatibility, please read the changelog before changing. - # $ darwin-rebuild changelog - - programs.gnupg.agent = { - enable = true; - enableSSHSupport = true; - }; - - homebrew = { - enable = true; - onActivation = { - cleanup = "zap"; - autoUpdate = true; - upgrade = true; - }; - global = { - brewfile = true; - lockfiles = true; - }; - casks = [ "kmbmpdc" "librewolf" "virtualbox" "bluetility" ]; - brews = [ - "pyenv" - "pyenv-virtualenv" - "mpd" - "choose-gui" - "vitetris" - "yabai" - "skhd" - "spacebar" - "gnu-getopt" - "coreutils" - "pinentry-mac" - ]; - taps = [ - "homebrew/bundle" - "homebrew/cask" - "homebrew/core" - "homebrew/services" - "koekeishiya/formulae" - "cmacrae/formulae" - ]; - }; - - fonts = { - fontDir.enable = true; - fonts = [ - (pkgs.nerdfonts.override { fonts = [ "Hack" "MPlus" ]; }) - pkgs.inter - pkgs.hack-font - pkgs.libertinus - ]; - }; - - users.users.rilla = { - name = "rilla"; - home = "/Users/rilla"; - }; - - home-manager = { users.rilla.imports = [ home/echidna.nix ]; }; - - system.stateVersion = 4; -} diff --git a/flake.lock b/flake.lock index 30acfc4..e9e1971 100644 --- a/flake.lock +++ b/flake.lock @@ -1,26 +1,5 @@ { "nodes": { - "darwin": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1690100173, - "narHash": "sha256-v3DT7u5KlW1ZoulvFQPndbg0gVD0zKGkJmPqGsBVQ3I=", - "owner": "lnl7", - "repo": "nix-darwin", - "rev": "0f9058e739dbefc676dee557b4b627962268d556", - "type": "github" - }, - "original": { - "owner": "lnl7", - "ref": "master", - "repo": "nix-darwin", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [ @@ -105,7 +84,6 @@ }, "root": { "inputs": { - "darwin": "darwin", "home-manager": "home-manager", "impermanence": "impermanence", "nixos-hardware": "nixos-hardware", diff --git a/flake.nix b/flake.nix index 034cbdc..6664127 100644 --- a/flake.nix +++ b/flake.nix @@ -9,14 +9,16 @@ }; impermanence.url = "github:nix-community/impermanence"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; - darwin = { - url = "github:lnl7/nix-darwin/master"; - inputs.nixpkgs.follows = "nixpkgs"; - }; }; - outputs = { self, nixpkgs, nixpkgs-stable, nixos-hardware, home-manager - , impermanence, darwin }@inputs: { + outputs = + { self + , nixpkgs + , nixpkgs-stable + , nixos-hardware + , home-manager + , impermanence + }@inputs: { nixosConfigurations = { trantor = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -49,10 +51,5 @@ ]; }; }; - - darwinConfigurations.echidna = darwin.lib.darwinSystem { - system = "x86_64-darwin"; - modules = [ ./echidna.nix home-manager.darwinModule ]; - }; }; } diff --git a/grub_background.png b/grub_background.png deleted file mode 100644 index 9f6d847d26e320464a54ba5383f7e6b65dce711c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10659 zcmeHtX;hQR)^2QCJS~D>w*w*yPJqlJlLScG5fK3enI{E82%{uGgaEOng;oRwEYVW7&-SyP7 z>&Y!EGwHoY_W}R_Y4ht>Yyg1oLd8w?Pmdf!TLoc(vG&^{o42 zsE^&g)(^?M*6$tsG0Ukd_l(l#@F+@0_bBcx*$>Sm_rLbhl-#`X)yXH*U`=vuy(sYh zw2Dmiqw=3H2a>ZwFMc({sw?0_NH~qvzUNstNC)D7>x`08*X-L{bj{@IF?;{9Q-~YH*?d9yBfXYZ56s^m`ON=%LGi~ERZ>G`Nu22A3)};uWwsNzyEMb8PlSkQG#xmTjY3+|jq|K-{BUDt0rJdywM z<-d;f*ltATAd&SO8?3BrXz+6`yjD+=yeVE5Nly#2D*y&y5>WHq`qg*ho*(XCcR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