mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-30 04:40:13 +00:00
Compare commits
4 Commits
861b93dada
...
14acb57ba4
Author | SHA1 | Date | |
---|---|---|---|
14acb57ba4 | |||
20a26068e7 | |||
7ef7ac9d95 | |||
ddeb232b4f |
45
flake.lock
45
flake.lock
@ -131,6 +131,27 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"zen-browser",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1752603129,
|
||||
"narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-rosetta-builder": {
|
||||
"inputs": {
|
||||
"nixos-generators": "nixos-generators",
|
||||
@ -259,7 +280,8 @@
|
||||
"emacs-larstvei": "emacs-larstvei",
|
||||
"home-manager": "home-manager",
|
||||
"nix-rosetta-builder": "nix-rosetta-builder",
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"zen-browser": "zen-browser"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
@ -276,6 +298,27 @@
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"zen-browser": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1755922982,
|
||||
"narHash": "sha256-YMchUKtaIhICzwwiAP/j6G+KaqRA8xSnGV2dfdVXoHw=",
|
||||
"owner": "0xc000022070",
|
||||
"repo": "zen-browser-flake",
|
||||
"rev": "25f56c0f5b813312f38078418b2229ada41c4bcc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "0xc000022070",
|
||||
"repo": "zen-browser-flake",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
10
flake.nix
10
flake.nix
@ -17,6 +17,10 @@
|
||||
url = "github:cpick/nix-rosetta-builder";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
zen-browser = {
|
||||
url = "github:0xc000022070/zen-browser-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
emacs-larstvei.url = "github:larstvei/emacs-flake";
|
||||
};
|
||||
|
||||
@ -27,6 +31,7 @@
|
||||
home-manager,
|
||||
nix-rosetta-builder,
|
||||
emacs-larstvei,
|
||||
zen-browser,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@ -47,7 +52,10 @@
|
||||
|
||||
nixosConfigurations.thinkpad = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit emacs-larstvei; };
|
||||
specialArgs = {
|
||||
inherit emacs-larstvei;
|
||||
inherit zen-browser;
|
||||
};
|
||||
modules = [
|
||||
home-manager.nixosModules.default
|
||||
./hosts/thinkpad/configuration.nix
|
||||
|
26
home/desktop/default.nix
Normal file
26
home/desktop/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ zen-browser, ... }:
|
||||
{
|
||||
imports = [
|
||||
zen-browser.homeModules.beta
|
||||
];
|
||||
|
||||
programs.zen-browser = {
|
||||
enable = true;
|
||||
policies = {
|
||||
DisableAppUpdate = true;
|
||||
DisableTelemetry = true;
|
||||
|
||||
AutofillAddressesEnabled = false;
|
||||
AutoFillCreditCardEnabled = false;
|
||||
DisablePocket = true;
|
||||
DisableProfileImport = true;
|
||||
DisableSetDesktopBackground = true;
|
||||
DontCheckDefaultBrowser = true;
|
||||
HomepageURL = "https://start.hadi.diy";
|
||||
StartPage = "homepage";
|
||||
NewTabPage = true;
|
||||
OfferToSaveLogins = false;
|
||||
# find more options here: https://mozilla.github.io/policy-templates/
|
||||
};
|
||||
};
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
config,
|
||||
pkgs,
|
||||
emacs-larstvei,
|
||||
zen-browser,
|
||||
...
|
||||
}:
|
||||
let
|
||||
@ -17,20 +18,25 @@ in
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit emacs-larstvei; };
|
||||
users.${v.username}.imports = [ ../../home ];
|
||||
extraSpecialArgs = {
|
||||
inherit emacs-larstvei;
|
||||
inherit zen-browser;
|
||||
};
|
||||
users.${v.username}.imports = [
|
||||
../../home
|
||||
../../home/desktop
|
||||
];
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.${v.username} = {
|
||||
isNormalUser = true;
|
||||
description = "Lars Tveito";
|
||||
home = v.userHome;
|
||||
shell = pkgs.fish;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
packages = with pkgs; [ ]; # keep empty; HM will provide user packages
|
||||
};
|
||||
|
||||
networking.hostName = v.hostName;
|
||||
|
@ -1 +1,12 @@
|
||||
{ }
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
fonts.packages = import ../../home/fonts { inherit pkgs; };
|
||||
|
||||
programs.fish.enable = true;
|
||||
environment.shells = [ pkgs.fish ];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
programs._1password.enable = true;
|
||||
programs._1password-gui.enable = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user