aboutsummaryrefslogtreecommitdiff
path: root/homes/floppydisk/default.nix
blob: 32209971b251966183d83141d053f4ce08fcd2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
  pkgs,
  lib,
  ...
}: {
  imports = [
    ./packages.nix # home.packages and similar stuff
    ./neovim-flake.nix
    ./ssh.nix
    ./git.nix
  ];

  home = {
    username = "floppydisk";
    homeDirectory = "/home/floppydisk";
    file.".config/lockonsleep/config.sh".source = ./lock.sh;
    file.".config/hypr/hyprpaper.conf".text = ''
      preload = ${/. + ../../misc/wallpapers/ibm.png}
      wallpaper = ,${/. + ../../misc/wallpapers/ibm.png}
      splash = false
    '';
  };

  wayland.windowManager.hyprland = {
    enable = true;
    systemd.enable = true;
    settings = import ./hyprland.nix;
  };

  programs.waybar = {
    enable = true;
    settings = import ./waybar.nix;
    style = import ./waybar-style.nix;
  };

  services.udiskie.enable = true;
  services.arrpc.enable = true;
  programs.zsh = {
    enable = true;
    shellAliases = {
      ls = "lsd";
      ll = "ls -l";
      la = "ls -la";
    };
    history = {
      size = 10000;
      path = "$HOME/.config/zsh/history";
    };
    oh-my-zsh = {
      enable = true;
      plugins = [
        "git"
        "thefuck"
      ];
      custom = "$HOME/.oh-my-custom";
      #theme = "powerlevel10k/powerlevel10k";
    };
    plugins = [
      {
        name = "powerlevel10k";
        src = pkgs.zsh-powerlevel10k;
        file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
      }
    ];
    initExtra = ''
      source ~/.p10k.zsh
    '';
  };

  programs.git = {
    enable = true;
    userName = "Frankie B.";
    userEmail = "git@diskfloppy.me";
    extraConfig = {
      # commit.gpgsign = true;
      # gpg.format = "ssh";
      # user.signingkey = "~/.ssh/id_ed25519.pub";
      init.defaultBranch = "master";
    };
  };

  programs.irssi = {
    enable = true;
    networks = {
      znc = {
        nick = "floppydisk";
        server = {
          address = "irc.nick99nack.com";
          port = 8888;
          autoConnect = true;
          ssl.enable = false;
        };
      };
    };
  };

  # let HM manage itself when in standalone mode
  programs.home-manager.enable = true;

  # Nicely reload system(d) units when changing configs
  systemd.user.startServices = lib.mkDefault "sd-switch";

  # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
  home.stateVersion = "24.05";
}