Compare commits

...

6 Commits

6 changed files with 108 additions and 91 deletions

View File

@ -52,7 +52,7 @@
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns4 = true;
publish = { publish = {
enable = true; enable = true;
addresses = true; addresses = true;
@ -84,8 +84,8 @@
}; };
# Enable automatic login for the user. # Enable automatic login for the user.
services.xserver.displayManager.autoLogin.enable = true; services.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = "mir"; services.displayManager.autoLogin.user = "mir";
# services.getty.autologinUser = "mir" # services.getty.autologinUser = "mir"
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229 # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229

View File

@ -9,11 +9,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1714264490, "lastModified": 1716699938,
"narHash": "sha256-5hKsAO7ZLwOLCXeI5+jDmDr7t4zBezk0xidVWghoBB0=", "narHash": "sha256-AzTYm22tTDJy0tSqMDf95rmCxxoGTPClu0paGPeh5a0=",
"owner": "tpwrules", "owner": "tpwrules",
"repo": "nixos-apple-silicon", "repo": "nixos-apple-silicon",
"rev": "4fac534b775aa0c40611257fa19ab8ab3243f4dc", "rev": "842306255856d7f5677c113e699101eb253e2e3f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -37,11 +37,11 @@
"emacs-config": { "emacs-config": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1711048799, "lastModified": 1717275804,
"narHash": "sha256-GWKDJi+RMYKRW6n0P6dMbxjHzue4O/VbEsicMKiKpzs=", "narHash": "sha256-88kQ/EQ90uGIZCqXo6SWDN/eirWrcTcMpgBUscDsAE8=",
"ref": "main", "ref": "main",
"rev": "946ea868eba978ab77d39597094dc5ce9534e3b2", "rev": "3ea56aefe8e6713e63fa0d494bd05e1478fd9fd8",
"revCount": 521, "revCount": 532,
"type": "git", "type": "git",
"url": "https://git.marq42.xyz/mir/emacs" "url": "https://git.marq42.xyz/mir/emacs"
}, },
@ -106,16 +106,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714043624, "lastModified": 1717527182,
"narHash": "sha256-Xn2r0Jv95TswvPlvamCC46wwNo8ALjRCMBJbGykdhcM=", "narHash": "sha256-vWSkg6AMok1UUQiSYVdGMOXKD2cDFnajITiSi0Zjd1A=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "86853e31dc1b62c6eeed11c667e8cdd0285d4411", "rev": "845a5c4c073f74105022533907703441e0464bc3",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-23.11", "ref": "release-24.05",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -127,11 +127,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714343445, "lastModified": 1717525419,
"narHash": "sha256-OzD1P0o46uD3Ix4ZI/g9z3YAeg+4g+W3qctB6bNOReo=", "narHash": "sha256-5z2422pzWnPXHgq2ms8lcCfttM0dz+hg+x1pCcNkAws=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9fe79591c1005ce6f93084ae7f7dab0a2891440d", "rev": "a7117efb3725e6197dd95424136f79147aa35e5b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -169,11 +169,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714868057, "lastModified": 1717036776,
"narHash": "sha256-Q9vGkxmuarySjPKO6yixjZ0tkaVIQS2wU9FpCpDA7+I=", "narHash": "sha256-joKTxvywYlKspGGKOIXho6oRbggOPyayEqAyuZCavO0=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "e31baf57680bab449ab5b40179cc4a08a99f5314", "rev": "b4b38e6b5fe18da9464f291ae5fbf2ea9acb9ccb",
"revCount": 62, "revCount": 86,
"type": "git", "type": "git",
"url": "https://git.lix.systems/lix-project/nixos-module" "url": "https://git.lix.systems/lix-project/nixos-module"
}, },
@ -184,27 +184,27 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1701282334, "lastModified": 1717179513,
"narHash": "sha256-MxCVrXY6v4QmfTwIysjjaX0XUhqBbxTWWB4HXtDYsdk=", "narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "057f9aecfb71c4437d2b27d3323df7f93c010b7e", "rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "23.11", "ref": "24.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1714253743, "lastModified": 1717196966,
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=", "narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994", "rev": "57610d2f8f0937f39dbd72251e9614b1561942d8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -216,11 +216,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1714340308, "lastModified": 1717532838,
"narHash": "sha256-2uX/VxxNTvxa0FZ5yY2BZDmMCtQVocqa6wdOC8YmzDE=", "narHash": "sha256-EYWsxcHdS2YhG9BmZF2H8TSSHbOjYLAWsggA/SHuJc0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "53a8759e2675301db38ae5cc17aa9b954a936e9c", "rev": "d7179450e2607764fd7f6d25894acec6d1ae44f9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -2,7 +2,7 @@
{ {
description = "NixOS configuration with Home Manager"; description = "NixOS configuration with Home Manager";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/23.11"; nixpkgs.url = "github:nixos/nixpkgs/24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
apple-silicon = { apple-silicon = {
url = "github:tpwrules/nixos-apple-silicon"; url = "github:tpwrules/nixos-apple-silicon";
@ -19,7 +19,7 @@
}; };
nur.url = github:nix-community/NUR; nur.url = github:nix-community/NUR;
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-23.11"; url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager-unstable = { home-manager-unstable = {
@ -92,7 +92,7 @@
./hardware/galvatron-hw.nix ./hardware/galvatron-hw.nix
./modules/sound/pipewire.nix ./modules/sound/pipewire.nix
inputs.apple-silicon.nixosModules.apple-silicon-support inputs.apple-silicon.nixosModules.apple-silicon-support
inputs.home-manager-unstable.nixosModules.home-manager { inputs.home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.mir = import ./home.nix; home-manager.users.mir = import ./home.nix;
@ -100,7 +100,7 @@
} }
]; # end of modules ]; # end of modules
in in
nixpkgs-unstable.lib.nixosSystem {inherit system modules specialArgs; }; # }}} nixpkgs.lib.nixosSystem {inherit system modules specialArgs; }; # }}}
breakdown = # {{{ breakdown = # {{{
let let
system = "x86_64-linux"; system = "x86_64-linux";
@ -173,7 +173,7 @@
./modules/droidcam-obs.nix # only this machine ./modules/droidcam-obs.nix # only this machine
./hardware/knockout-hw.nix ./hardware/knockout-hw.nix
./modules/sound/pipewire.nix ./modules/sound/pipewire.nix
inputs.home-manager-unstable.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
@ -182,7 +182,7 @@
} }
]; # end of modules ]; # end of modules
in in
inputs.nixpkgs-unstable.lib.nixosSystem {inherit system modules specialArgs; }; # }}} inputs.nixpkgs.lib.nixosSystem {inherit system modules specialArgs; }; # }}}
ravage = # {{{ ravage = # {{{
let let

View File

@ -6,6 +6,7 @@ with lib.hm.gvariant;
./modules/dconf.nix ./modules/dconf.nix
./modules/shell.nix ./modules/shell.nix
./modules/firefox.nix ./modules/firefox.nix
# ./modules/emacs.nix
]; ];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
@ -16,6 +17,7 @@ with lib.hm.gvariant;
pkgs.killall pkgs.killall
pkgs.gdb pkgs.gdb
pkgs.neofetch pkgs.neofetch
pkgs.fastfetch
pkgs.file pkgs.file
pkgs.findutils pkgs.findutils
pkgs.wget pkgs.wget
@ -34,13 +36,6 @@ with lib.hm.gvariant;
# pyqt6 # pyqt6
# # pyqt6-qt6 # # pyqt6-qt6
# pyqt6-sip])) # pyqt6-sip]))
# (pkgs.emacsWithPackagesFromUsePackage {
# package = pkgs.emacs29-pgtk;
# config = ~/.emacs.d/init.el;
# extraEmacsPackages = epkgs: [
# epkgs.dash;
# ]
# })
# pkgs.fetchFromGitHub # pkgs.fetchFromGitHub
]; ];
@ -102,12 +97,12 @@ with lib.hm.gvariant;
programs.hyfetch = { programs.hyfetch = {
enable = true; enable = true;
settings = { settings = {
preset = "genderfluid"; preset = "nonbinary";
mode = "rgb"; mode = "rgb";
color_align = { color_align = {
mode = "horizontal"; mode = "horizontal";
}; };
backend = "neofetch"; backend = "fastfetch";
}; };
}; };

20
modules/emacs.nix Normal file
View File

@ -0,0 +1,20 @@
{ lib, config, pkgs, inputs, ... }:
{
home.packages = [
(pkgs.emacsWithPackages {
package = pkgs.emacs29;
# config = ~/.emacs.d/init.el;
extraEmacsPackages = epkgs: [
epkgs.dash
epkgs.compat
epkgs.marginalia
epkgs.page-break-lines
epkgs.rainbow-mode
epkgs.powershell
epkgs.diminish
# epkgs.general
epkgs.eldoc
];
}
)];
}

View File

@ -5,29 +5,29 @@
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped { package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
extraPolicies = { extraPolicies = {
DisableTelemetry = true; DisableTelemetry = true;
# add policies here... # add policies here...
/* ---- PREFERENCES ---- */ /* ---- PREFERENCES ---- */
# Set preferences shared by all profiles. # Set preferences shared by all profiles.
Preferences = { Preferences = {
"browser.contentblocking.category" = { Value = "strict"; Status = "locked"; }; "browser.contentblocking.category" = { Value = "strict"; Status = "locked"; };
# add global preferences here... # add global preferences here...
};
}; };
}; };
};
policies = { policies = {
ExtensionSettings = with builtins; ExtensionSettings = with builtins;
let extension = shortId: uuid: { let extension = shortId: uuid: {
name = uuid; name = uuid;
value = { value = {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi"; install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed"; installation_mode = "normal_installed";
}; };
}; };
in listToAttrs [ in listToAttrs [
(extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp") (extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp")
(extension "ublock-origin" "uBlock0@raymondhill.net") (extension "ublock-origin" "uBlock0@raymondhill.net")
@ -35,38 +35,40 @@
(extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me") (extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me")
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}") (extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
(extension "mark-my-search" "{3c87dcad-dbbd-4be1-b07b-b6d0739b0aec}") (extension "mark-my-search" "{3c87dcad-dbbd-4be1-b07b-b6d0739b0aec}")
(extension "vimium" "{d7742d87-e61d-4b78-b8a1-b469842139fa}") (extension "vimium" "{d7742d87-e61d-4b78-b8a1-b469842139fa}")
(extension "beautiful-alpen-blue" "{b96cf6da-f1b1-4b9d-9e69-98e7da9dd7c3}") (extension "beautiful-alpen-blue" "{b96cf6da-f1b1-4b9d-9e69-98e7da9dd7c3}")
]; ];
# To add additional extensions, find it on addons.mozilla.org, find # To add additional extensions, find it on addons.mozilla.org, find
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/) # the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
# Then, download the XPI by filling it in to the install_url template, unzip it, # Then, download the XPI by filling it in to the install_url template, unzip it,
# run `jq .browser_specific_settings.gecko.id manifest.json` or # run `jq .browser_specific_settings.gecko.id manifest.json` or
# `jq .applications.gecko.id manifest.json` to get the UUID # `jq .applications.gecko.id manifest.json` to get the UUID
# mir note: or just go to about:debugging#/runtime/this-firefox and copy the first field "Extension ID" # mir note: or just go to about:debugging#/runtime/this-firefox and copy the first field "Extension ID"
}; };
profiles = { profiles = {
default = { default = {
id = 0; id = 0;
name = "default"; name = "default";
isDefault = true; isDefault = true;
settings = { settings = {
"browser.startup.homepage" = "https://search.marq42.xyz"; "browser.startup.homepage" = "https://search.marq42.xyz";
"browser.search.defaultenginename" = "searx"; "browser.search.defaultenginename" = "searx";
"browser.search.order.1" = "searx"; "browser.search.order.1" = "searx";
}; };
search = { search = {
force = true; force = true;
default = "searx"; default = "searx";
order = [ "searx" "Google" ]; order = [ "searx" "Google" ];
}; };
# extensions = with pkgs.nur.repos.rycee.firefox-addons; [ # userChrome = ''
# ublock-origin # !important @import "~/.mozilla/safari-userchrome.css";
# vimium # '';
# mark-my-search
# ];
}; };
}; };
}; };
} home.file.".mozilla/safari-userchrome.css".source = builtins.fetchurl {
url = "https://gist.githubusercontent.com/janoamaral/5c0a6e944ca31d2a6a51712d0c453d48/raw/6e1f0d1e3e31400d467302da3198c3e9c3caa647/userChrome.css";
sha256 = "19hbf9kf93ggryabbxz5h9nsm2ymzjg369b8bld818a515cx4vhc";
};
}