Skip to content

Commit

Permalink
Merge pull request #1 from theobori/feature/flake-update
Browse files Browse the repository at this point in the history
Feature/flake update
  • Loading branch information
theobori authored Nov 16, 2024
2 parents 2874645 + 8e1af08 commit 6b86196
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 46 deletions.
47 changes: 32 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
nixpkgs-85f7e66.url = "github:nixos/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933";

home-manager = {
url = "github:nix-community/home-manager";
Expand Down
3 changes: 0 additions & 3 deletions modules/home/cli/shells/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pkgs,
lib,
config,
host,
namespace,
...
}:
Expand Down Expand Up @@ -51,8 +50,6 @@ in

nd = "nix develop";
nfu = "nix flake update";
hms = "home-manager switch --flake ~/${namespace}#${config.theobori-nix.user.name}@${host}";
nrs = "sudo nixos-rebuild switch --flake ~/${namespace}#${host}";
};

functions = {
Expand Down
20 changes: 20 additions & 0 deletions modules/home/games/supermariowar/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.games.supermariowar;
in
{
options.${namespace}.games.supermariowar = {
enable = mkBoolOpt false "Enable supermariowar.";
};

config = mkIf cfg.enable { home.packages = with pkgs; [ supermariowar ]; };
}
2 changes: 1 addition & 1 deletion modules/home/roles/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ in
};

home.packages = with pkgs; [
#spotify
spotify
pavucontrol
mplayer
mtpfs
Expand Down
1 change: 1 addition & 0 deletions modules/home/roles/gaming/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ in
games = {
teeworlds = enabled;
taterclient-ddnet = enabled;
supermariowar = enabled;
};
};
};
Expand Down
37 changes: 18 additions & 19 deletions modules/nixos/display-managers/sddm/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
config,
lib,
pkgs,
namespace,
...
}:
let
inherit (lib) mkIf mkForce;
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt enabled;

cfg = config.${namespace}.display-managers.sddm;
Expand All @@ -21,28 +20,28 @@ in

services.displayManager.sddm = {
enable = true;
package = mkForce pkgs.libsForQt5.sddm;
extraPackages =
with pkgs.libsForQt5;
mkForce [
qt5.qtquickcontrols
qt5.qtquickcontrols2
qt5.qtgraphicaleffects
qt5.qtdeclarative
qt5.qtbase
# package = mkForce pkgs.libsForQt5.sddm;
# extraPackages =
# with pkgs.libsForQt5;
# mkForce [
# qt5.qtquickcontrols
# qt5.qtquickcontrols2
# qt5.qtgraphicaleffects
# qt5.qtdeclarative
# qt5.qtbase

plasma-framework
plasma-workspace
plasma-integration
kdeclarative
];
# plasma-framework
# plasma-workspace
# plasma-integration
# kdeclarative
# ];

# Non-root X11 instance
settings.General.DisplayServer = "x11-user";
# settings.General.DisplayServer = "x11-user";
# My custom dracula theme
theme = "Dracula";
# theme = "Dracula";
};

environment.systemPackages = [ pkgs.${namespace}.my-dracula-theme ];
# environment.systemPackages = [ pkgs.${namespace}.my-dracula-theme ];
};
}
2 changes: 1 addition & 1 deletion modules/nixos/security/doas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ in
extraRules = [
{
users = builtins.attrNames config.${namespace}.user.users;
noPass = false;
keepEnv = true;
persist = true;
}
];
};
Expand Down
3 changes: 3 additions & 0 deletions overlays/base16-schemes/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{ channels, ... }:

_final: _prev: { inherit (channels.nixpkgs-85f7e66) base16-schemes; }
17 changes: 10 additions & 7 deletions systems/x86_64-linux/laptop/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
pkgs,
modulesPath,
lib,
namespace,
Expand All @@ -15,15 +16,17 @@ in
./hardware-configuration.nix
];

boot.loader.grub = {
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
# devices = [ ];
efiSupport = true;
efiInstallAsRemovable = true;
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.grub = {
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
# devices = [ ];
efiSupport = true;
efiInstallAsRemovable = true;
};
supportedFilesystems = [ "ntfs" ];
};

boot.supportedFilesystems = [ "ntfs" ];

${namespace} = {
security.doas = enabled;

Expand Down

0 comments on commit 6b86196

Please sign in to comment.