Commit 207823d93158
Changed files (7)
modules
profiles
modules/profiles/desktop.nix
@@ -54,6 +54,13 @@ in
package = pkgs.arc-theme;
};
};
+ services.redshift = {
+ enable = true;
+ brightness = { day = "1"; night = "0.9"; };
+ latitude = "48.3";
+ longitude = "7.5";
+ tray = true;
+ };
home.file.".XCompose".source = ./assets/xorg/XCompose;
home.file.".Xmodmap".source = ./assets/xorg/Xmodmap;
xdg.configFile."xorg/emoji.compose".source = ./assets/xorg/emoji.compose;
modules/profiles/laptop.nix
@@ -0,0 +1,23 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+ cfg = config.profiles.laptop;
+in
+{
+ options = {
+ profiles.laptop = {
+ enable = mkOption {
+ default = false;
+ description = "Enable laptop profile";
+ type = types.bool;
+ };
+ };
+ };
+ config = mkIf cfg.enable {
+ profiles.desktop.enable = true;
+ programs.autorandr = {
+ enable = true;
+ };
+ };
+}
modules/module-list.nix
@@ -7,6 +7,7 @@
./profiles/ssh.nix
./profiles/fish.nix
./profiles/i3.nix
+ ./profiles/laptop.nix
./profiles/tmux.nix
./services/shairport-sync.nix
];
hokkaido.nix
@@ -2,7 +2,7 @@
{
imports = [
- ./laptop.nix
+ ./desktop.nix
# dev
./dev.go.nix
./dev.python.nix
@@ -12,7 +12,7 @@
./containers.nix
./kubernetes.nix
];
- profiles.desktop.enable = true;
+ profiles.laptop.enable = true;
home.packages = with pkgs; [
google-chrome
];
laptop.nix
@@ -1,17 +0,0 @@
-{ ... }:
-
-{
- imports = [
- ./desktop.nix
- ];
- services.redshift = {
- enable = true;
- brightness = { day = "1"; night = "0.9"; };
- latitude = "48.3";
- longitude = "7.5";
- tray = true;
- };
- programs.autorandr = {
- enable = true;
- };
-}
shikoku.nix
@@ -2,7 +2,6 @@
{
imports = [
- ./desktop.nix
./gaming.nix
./devops.nix
./dev.go.nix
@@ -16,6 +15,7 @@
./ssh.nix
./vscode.nix
];
+ profiles.desktop.enable = true;
xdg.configFile."fish/conf.d/docker.fish".text = ''
set -gx DOCKER_BUILDKIT 1
'';
wakasu.nix
@@ -2,7 +2,7 @@
{
imports = [
- ./laptop.nix
+ ./desktop.nix
./devops.nix
./dev.go.nix
./dev.rust.nix
@@ -14,6 +14,7 @@
./ssh.nix
./vscode.nix
];
+ profiles.laptop.enable = true;
xdg.configFile."fish/conf.d/docker.fish".text = ''
set -gx DOCKER_BUILDKIT 1
'';