update systems, nvtop only on desktop
This commit is contained in:
parent
e5b7ad50ad
commit
972856acee
9 changed files with 56 additions and 25 deletions
38
flake.lock
generated
38
flake.lock
generated
|
@ -3,7 +3,7 @@
|
||||||
"agenix": {
|
"agenix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"ragenix",
|
"ragenix",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
@ -87,6 +87,27 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713906585,
|
||||||
|
"narHash": "sha256-fv84DCOkBtjF6wMATt0rfovu7e95L8rdEkSfNbwKR3U=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "bfa7c06436771e3a0c666ccc6ee01e815d4c33aa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"ragenix",
|
"ragenix",
|
||||||
|
@ -110,16 +131,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711668574,
|
"lastModified": 1713714899,
|
||||||
"narHash": "sha256-u1dfs0ASQIEr1icTVrsKwg2xToIpn7ZXxW3RHfHxshg=",
|
"narHash": "sha256-+z/XjO3QJs5rLE5UOf015gdVauVRQd2vZtsFkaXBq2Y=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "219951b495fc2eac67b1456824cc1ec1fd2ee659",
|
"rev": "6143fc5eeb9c4f00163267708e26191d1e918932",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-23.11",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -131,11 +152,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711646165,
|
"lastModified": 1713095112,
|
||||||
"narHash": "sha256-Df/834E2M5Qc+jKb/LqraoPjjz1k1oCoL5PQB/1aT44=",
|
"narHash": "sha256-Q+6nVJqyKnEeXKq9h1glCZ+HeML4ZdnPBfmg8U99d54=",
|
||||||
"owner": "yunfachi",
|
"owner": "yunfachi",
|
||||||
"repo": "nypkgs",
|
"repo": "nypkgs",
|
||||||
"rev": "a99e5f398dc27ee06a3a57c88b65a6869f426795",
|
"rev": "4afb31c3ea03c83d37e0182015cf80a5cb487be4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -170,6 +191,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nypkgs": "nypkgs",
|
"nypkgs": "nypkgs",
|
||||||
"ragenix": "ragenix"
|
"ragenix": "ragenix"
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -14,11 +14,16 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Pinned nix version
|
home-manager = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
|
url = "github:nix-community/home-manager/master";
|
||||||
|
inputs.nixpkgs.follows =
|
||||||
|
"nixpkgs"; # Use system packages list where available
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nypkgs, nixpkgs, ... } @ inputs:
|
outputs = { self, nypkgs, nixpkgs, home-manager, ... } @ inputs:
|
||||||
let
|
let
|
||||||
myHosts = [
|
myHosts = [
|
||||||
{
|
{
|
||||||
|
@ -68,7 +73,7 @@
|
||||||
acc // {
|
acc // {
|
||||||
"${nixConfig.name}" = nixpkgs.lib.nixosSystem
|
"${nixConfig.name}" = nixpkgs.lib.nixosSystem
|
||||||
{
|
{
|
||||||
modules = [ ./hosts/_common/configuration.nix ./hosts/${nixConfig.name}/configuration.nix ];
|
modules = [./hosts/_common/configuration.nix ./hosts/${nixConfig.name}/configuration.nix ];
|
||||||
specialArgs = inputs // {
|
specialArgs = inputs // {
|
||||||
ylib = nypkgs.legacyPackages.${nixConfig.opts.system}.lib;
|
ylib = nypkgs.legacyPackages.${nixConfig.opts.system}.lib;
|
||||||
settings = directories // nixConfig.settings // {
|
settings = directories // nixConfig.settings // {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# I want this globally even for root so doing it outside of home manager
|
# I want this globally even for root so doing it outside of home manager
|
||||||
services.xserver.xkbOptions = "caps:escape";
|
services.xserver.xkb.options = "caps:escape";
|
||||||
console = {
|
console = {
|
||||||
earlySetup = true;
|
earlySetup = true;
|
||||||
packages = with pkgs; [ terminus_font ];
|
packages = with pkgs; [ terminus_font ];
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
{ config, pkgs, settings, ylib, ... } @ inputs:
|
{ config, pkgs, home-manager, settings, ylib, ... } @ inputs:
|
||||||
let
|
# Note that we must have the channel added for the import to work below
|
||||||
home-manager = builtins.fetchTarball {
|
# `sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager`
|
||||||
url = "https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz";
|
# `sudo nix-channel --update`
|
||||||
# to get hash run `nix-prefetch-url --unpack "https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz"`
|
|
||||||
sha256 = "0g51f2hz13dk953i501fmc6935difhz60741nypaqwz127hy5ldk";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
# home manager import
|
# home manager import
|
||||||
(import "${home-manager}/nixos")
|
home-manager.nixosModules.home-manager
|
||||||
|
# home-manager
|
||||||
];
|
];
|
||||||
# Home manager options
|
# Home manager options
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
|
@ -48,7 +48,6 @@ in
|
||||||
neofetch
|
neofetch
|
||||||
bat
|
bat
|
||||||
htop
|
htop
|
||||||
nvtop
|
|
||||||
unzip
|
unzip
|
||||||
git
|
git
|
||||||
fzf
|
fzf
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
hardware.pulseaudio.enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
||||||
|
|
||||||
# environment.systemPackages = with pkgs; [ ];
|
environment.systemPackages = with pkgs; [ nvtopPackages.full ];
|
||||||
|
|
||||||
# nvidia gfx https://nixos.wiki/wiki/Nvidia
|
# nvidia gfx https://nixos.wiki/wiki/Nvidia
|
||||||
# =========
|
# =========
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
|
|
||||||
-- TODO come up with a way to pregen keys so onboarding is less stupid with secrets?
|
-- TODO come up with a way to pregen keys so onboarding is less stupid with secrets?
|
||||||
|
|
||||||
|
- add home home-manager
|
||||||
|
- `sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager`
|
||||||
|
- `sudo nix-channel --update`
|
||||||
- `cp -r /etc/nixos ~/nixos_bak` Backup configuration
|
- `cp -r /etc/nixos ~/nixos_bak` Backup configuration
|
||||||
- Checkout this repo into /etc/nixos: `rm -rf /etc/nixos` `git clone https://github.com/ringofstorms/dotfiles /etc/nixos`
|
- Checkout this repo into /etc/nixos: `rm -rf /etc/nixos` `git clone https://github.com/ringofstorms/dotfiles /etc/nixos`
|
||||||
- Copy the backup into the new /etc/nixos/hosts/HOSTNAME dir `mkdir /etc/nixos/hosts/HOSTNAME && cp -r ~/nixos_bak/* /etx/nixos/hosts/HOSTNAME`
|
- Copy the backup into the new /etc/nixos/hosts/HOSTNAME dir `mkdir /etc/nixos/hosts/HOSTNAME && cp -r ~/nixos_bak/* /etx/nixos/hosts/HOSTNAME`
|
||||||
|
|
5
users/josh/by_hosts/joe/home_manager/spotify.nix
Normal file
5
users/josh/by_hosts/joe/home_manager/spotify.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = [ pkgs.spotify ];
|
||||||
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAutosuggestions = true;
|
autosuggestion.enable = true;
|
||||||
|
|
||||||
shellAliases = { };
|
shellAliases = { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue