Skip to content

Commit

Permalink
fix: user shell
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Nov 12, 2024
1 parent 9bce357 commit 6ce423a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
4 changes: 2 additions & 2 deletions system/users/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
sioodmy = {
isNormalUser = true;
homix = true;
# shell = flake.packages.${pkgs.system}.cli.zsh;
shell = flake.packages.${pkgs.system}.zsh;

hashedPasswordFile = "/persist/secrets/sioodmy";
extraGroups = [
Expand Down Expand Up @@ -56,7 +56,7 @@
fprintAuth = true;
};
sudo.fprintAuth = true;
swaylock.fprintAuth = true;
hyprlock.fprintAuth = true;
};

loginLimits = [
Expand Down
2 changes: 1 addition & 1 deletion system/wayland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
enable = true;
settings = rec {
initial_session = {
command = "river";
command = "Hyprland";
user = "sioodmy";
};
default_session = initial_session;
Expand Down
24 changes: 11 additions & 13 deletions user/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
theme: rec {
theme: rec
{
packages = pkgs: let
inherit (pkgs) callPackage;
in {
cli =
{
nvim = callPackage ./nvim {inherit theme;};
zsh = callPackage ./zsh {};
}
// (import ./misc-scripts {inherit pkgs;});
desktop = {
in
{
nvim = callPackage ./nvim {inherit theme;};
zsh = callPackage ./zsh {};
river = callPackage ./river {inherit theme;};
foot = callPackage ./foot {inherit theme;};
tofi = callPackage ./tofi {inherit theme;};
mako = callPackage ./mako {inherit theme;};
swaylock = callPackage ./swaylock {inherit theme;};
};
};
}
// (import ./misc-scripts {inherit pkgs;});

shell = pkgs:
pkgs.mkShell {
name = "sioodmy-devshell";
buildInputs = builtins.attrValues (packages pkgs).cli;
buildInputs = builtins.attrValues (packages pkgs);
};
module = {pkgs, ...}: {
config = {
environment.systemPackages = builtins.concatLists (map (x: builtins.attrValues x) (builtins.attrValues (packages pkgs)));
environment.systemPackages = builtins.attrValues (packages pkgs);
};
imports = [
./packages.nix
./hyprland
./git
./gtk
];
Expand Down
2 changes: 1 addition & 1 deletion user/foot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
title = "foot";
locked-title = "no";

font = "monospace:size=14";
font = "monospace:size=13";
line-height = 20;
letter-spacing = 0;
horizontal-letter-offset = 0;
Expand Down
6 changes: 6 additions & 0 deletions user/hyprland/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{pkgs, ...}: {
programs.hyprland = {
enable = true;
# TODO
};
}

0 comments on commit 6ce423a

Please sign in to comment.